|
| 1 | +additional_cargo_args = ["--all-features"] |
| 2 | +examine_globs = ["units/src/**/*.rs"] |
| 3 | +exclude_globs = [ |
| 4 | + "units/src/amount/verification.rs" # kani tests |
| 5 | +] |
| 6 | +exclude_re = [ |
| 7 | + "impl Debug", |
| 8 | + "impl Arbitrary", |
| 9 | + "impl Display", |
| 10 | + ".*Error", |
| 11 | + # --------------------------------------------Crate-specific exclusions-------------------------------------------- |
| 12 | + # Units |
| 13 | + # src/amount/mod.rs |
| 14 | + "parse_signed_to_satoshi", # Can't kill all mutants since there is no denomination smaller than Satoshi |
| 15 | + "fmt_satoshi_in", # Related to formatting/display |
| 16 | + "dec_width", # Replacing num /= 10 with num %=10 in a loop causes a timeout due to infinite loop |
| 17 | + # src/fee_rate/serde.rs |
| 18 | + "as_sat_per_kwu::opt::deserialize::<impl Visitor for VisitOpt>.*", # Replaces return value with Ok(Default::default()), which is the same as Ok(None) |
| 19 | + "as_sat_per_vb_floor::opt::deserialize::<impl Visitor for VisitOpt>.*", # Replaces return value with Ok(Default::default()), which is the same as Ok(None) |
| 20 | + "as_sat_per_vb_ceil::opt::deserialize::<impl Visitor for VisitOpt>.*", # Replaces return value with Ok(Default::default()), which is the same as Ok(None) |
| 21 | + # src/amount/serde.rs |
| 22 | + "as_sat::opt::deserialize::<impl Visitor for VisitOptAmt<X>>.*", # Replaces return value with Ok(Default::default()), which is the same as Ok(None) |
| 23 | + "as_btc::opt::deserialize::<impl Visitor for VisitOptAmt<X>>.*", # Replaces return value with Ok(Default::default()), which is the same as Ok(None) |
| 24 | + "as_str::opt::deserialize::<impl Visitor for VisitOptAmt<X>>.*", # Replaces return value with Ok(Default::default()), which is the same as Ok(None) |
| 25 | + # src/locktime/relative.rs |
| 26 | + "Time::to_consensus_u32" # It will replace | with ^, which will return the same value since the XOR is always taken against the u16 and an all-zero bitmask |
| 27 | +] |
0 commit comments