Skip to content

Commit

Permalink
Add coverage-helper to ignore validate tests in coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Nov 7, 2023
1 parent 8556d17 commit 017768e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ webbrowser = "0.8.10"
urlencoding = "2.1.2"
cool_asserts = "2.0.3"
paste = "1.0"
coverage-helper = "0.2.0"

[[bench]]
name = "bench_main"
Expand Down
1 change: 1 addition & 0 deletions src/hugr/validate/test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use cool_asserts::assert_matches;
use coverage_helper::test;

use super::*;
use crate::builder::test::closed_dfg_root_hugr;
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
// Unstable check, may cause false positives.
// https://github.com/rust-lang/rust-clippy/issues/5112
#![warn(clippy::debug_assert_with_mut_call)]
// https://crates.io/crates/coverage-helper to allow selectively ignoring tests
// in coverage.
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

pub mod algorithm;
pub mod builder;
Expand Down

0 comments on commit 017768e

Please sign in to comment.