Skip to content

Commit be55dca

Browse files
committed
upgrade cargo mutants to v25.2.2
This updates cargo mutants to 25.2.2 to allow us to catch more mutants and add some more precise exclusions.
1 parent ba5ac46 commit be55dca

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.cargo/mutants.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
additional_cargo_args = ["--all-features"]
2+
gitignore = true
23
examine_globs = ["payjoin/src/core/uri/*.rs", "payjoin/src/core/receive/**/*.rs", "payjoin/src/core/send/**/*.rs"]
34
exclude_globs = []
45
exclude_re = [
@@ -12,4 +13,13 @@ exclude_re = [
1213
# Receive
1314
# src/receive/v1/mod.rs
1415
"interleave_shuffle", # Replacing index += 1 with index *= 1 in a loop causes a timeout due to an infinite loop
16+
"replace > with >= in ProvisionalProposal::apply_fee", # allowing 2 code blocks in this function to run when the additional fee = 0 does nothing
17+
"replace < with <= in PsbtContext::check_outputs", # allowing the subtraction of 2 equal values always resulting in a contrib_fee of 0
18+
"replace > with >= in PsbtContext::check_fees", # checking if the feerate is below the minimum when the minimum is allowed to be zero does nothing
19+
"replace > with >= in Sender<WithReplyKey>::extract_v2", # checking if the system time is equal to the expiry is difficult to reasonably test
20+
"replace < with <= in Receiver<Initialized>::apply_unchecked_from_payload", # checking if the system time is equal to the expiry is difficult to reasonably test
21+
"replace > with >= in Receiver<Initialized>::extract_req", # checking if the system time is equal to the expiry is difficult to reasonably test
22+
"replace > with >= in extract_err_req", # checking if the system time is equal to the expiry is difficult to reasonably test
23+
"replace < with <= in SenderBuilder<'a>::build_recommended", # clamping the fee contribution when the fee equals to the recommended fee does not do anything
24+
"replace match guard with true in PsbtContext::check_outputs", # This non-deterministic mutation has a possible test to catch it
1525
]

.github/workflows/cron-weekly-mutants.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: taiki-e/install-action@v2
1414
with:
15-
tool: cargo-mutants@25.0.1
15+
tool: cargo-mutants@25.2.2
1616
- run: cargo mutants --in-place --no-shuffle
1717
- uses: actions/upload-artifact@v4
1818
if: always()

0 commit comments

Comments
 (0)