Skip to content

Commit cec3f19

Browse files
committed
GH-15 # Ignore coverage of PseudoRng
1 parent 1590b3a commit cec3f19

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ sha2 = "^0.10"
2020

2121
[dev-dependencies]
2222
rstest = "~0.24"
23+
24+
[lints.rust]
25+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin_include)'] }

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ impl JarmRng for TestRng { // Mocked Rng used in tests
760760
}
761761
}
762762

763+
#[cfg(not(tarpaulin_include))] // disable coverage
763764
impl JarmRng for PseudoRng { // Real Rng used outside of tests
764765
fn random_bytes(&self) -> Vec<u8> {
765766
let mut rng = rand::rng();

0 commit comments

Comments
 (0)