🧬 Weekly Mutation Testing Report - 2026-02-20 #1661

Closed
opened 2026-02-20 07:21:12 +00:00 by github-actions[bot] · 0 comments
github-actions[bot] commented 2026-02-20 07:21:12 +00:00 (Migrated from github.com)

Mutation Testing Results

  • Caught: 553
  • Missed: 292

Top 10 Missed Mutations

crates/cashu/src/amount.rs:344:18: replace > with >= in Amount<()>::saturating_sub
crates/cashu/src/secret.rs:65:9: replace Secret::len -> usize with 0
crates/cashu/src/secret.rs:65:9: replace Secret::len -> usize with 1
crates/cashu/src/secret.rs:71:9: replace Secret::is_empty -> bool with true
crates/cashu/src/secret.rs:71:9: replace Secret::is_empty -> bool with false
crates/cashu/src/nuts/nut00/mod.rs:335:9: replace <impl std::fmt::Display for Witness>::fmt -> std::fmt::Result with Ok(Default::default())
crates/cashu/src/nuts/nut00/mod.rs:849:9: replace <impl PartialOrd for PreMint>::partial_cmp -> Option<std::cmp::Ordering> with None
crates/cashu/src/nuts/nut00/mod.rs:994:9: replace PreMintSecrets::iter -> impl Iterator<Item =&PreMint> with ::std::iter::empty()
crates/cashu/src/nuts/nut00/mod.rs:1006:9: replace PreMintSecrets::is_empty -> bool with true
crates/cashu/src/nuts/nut00/mod.rs:1006:9: replace PreMintSecrets::is_empty -> bool with false

Action Items

  1. Review the missed mutations above
  2. Add tests to catch these mutations
  3. For the complete list, check the mutants.out artifact

cargo-mutants version: cargo-mutants 26.2.0


💡 Tip: Use just mutants-quick to test only your changes before pushing!

## Mutation Testing Results - ✅ Caught: 553 - ❌ Missed: 292 ### Top 10 Missed Mutations ``` crates/cashu/src/amount.rs:344:18: replace > with >= in Amount<()>::saturating_sub crates/cashu/src/secret.rs:65:9: replace Secret::len -> usize with 0 crates/cashu/src/secret.rs:65:9: replace Secret::len -> usize with 1 crates/cashu/src/secret.rs:71:9: replace Secret::is_empty -> bool with true crates/cashu/src/secret.rs:71:9: replace Secret::is_empty -> bool with false crates/cashu/src/nuts/nut00/mod.rs:335:9: replace <impl std::fmt::Display for Witness>::fmt -> std::fmt::Result with Ok(Default::default()) crates/cashu/src/nuts/nut00/mod.rs:849:9: replace <impl PartialOrd for PreMint>::partial_cmp -> Option<std::cmp::Ordering> with None crates/cashu/src/nuts/nut00/mod.rs:994:9: replace PreMintSecrets::iter -> impl Iterator<Item =&PreMint> with ::std::iter::empty() crates/cashu/src/nuts/nut00/mod.rs:1006:9: replace PreMintSecrets::is_empty -> bool with true crates/cashu/src/nuts/nut00/mod.rs:1006:9: replace PreMintSecrets::is_empty -> bool with false ``` ### Action Items 1. Review the missed mutations above 2. Add tests to catch these mutations 3. For the complete list, check the [mutants.out artifact](https://github.com/cashubtc/cdk/actions/runs/22211843573) **cargo-mutants version:** cargo-mutants 26.2.0 --- 💡 **Tip:** Use `just mutants-quick` to test only your changes before pushing!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cashubtc/cdk#1661
No description provided.