Reorganize mutants.toml
Generalize `deserialize` as an exception for everywhere. Reword comment to make clearer
This commit is contained in:
parent
9c3a52be88
commit
32b05132b5
|
@ -8,20 +8,14 @@ exclude_re = [
|
||||||
"impl Arbitrary",
|
"impl Arbitrary",
|
||||||
"impl Display",
|
"impl Display",
|
||||||
".*Error",
|
".*Error",
|
||||||
# --------------------------------------------Crate-specific exclusions--------------------------------------------
|
"deserialize", # Skip serde mutation tests
|
||||||
|
|
||||||
|
# ----------------------------------Crate-specific exclusions----------------------------------
|
||||||
# Units
|
# Units
|
||||||
# src/amount/mod.rs
|
# src/amount/mod.rs
|
||||||
"parse_signed_to_satoshi", # Can't kill all mutants since there is no denomination smaller than Satoshi
|
"parse_signed_to_satoshi", # Can't kill all mutants since there is no denomination smaller than Satoshi
|
||||||
"fmt_satoshi_in", # Related to formatting/display
|
"fmt_satoshi_in", # Related to formatting/display
|
||||||
"dec_width", # Replacing num /= 10 with num %=10 in a loop causes a timeout due to infinite loop
|
"dec_width", # Replacing num /= 10 with num %=10 in a loop causes a timeout due to infinite loop
|
||||||
# src/fee_rate/serde.rs
|
|
||||||
"as_sat_per_kwu::opt::deserialize::<impl Visitor for VisitOpt>.*", # Replaces return value with Ok(Default::default()), which is the same as Ok(None)
|
|
||||||
"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)
|
|
||||||
"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)
|
|
||||||
# src/amount/serde.rs
|
|
||||||
"as_sat::opt::deserialize::<impl Visitor for VisitOptAmt<X>>.*", # Replaces return value with Ok(Default::default()), which is the same as Ok(None)
|
|
||||||
"as_btc::opt::deserialize::<impl Visitor for VisitOptAmt<X>>.*", # Replaces return value with Ok(Default::default()), which is the same as Ok(None)
|
|
||||||
"as_str::opt::deserialize::<impl Visitor for VisitOptAmt<X>>.*", # Replaces return value with Ok(Default::default()), which is the same as Ok(None)
|
|
||||||
# src/locktime/relative.rs
|
# src/locktime/relative.rs
|
||||||
"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
|
"Time::to_consensus_u32", # Mutant from replacing | with ^, this returns the same value since the XOR is taken against the u16 with an all-zero bitmask
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue