🧬 Weekly Mutation Testing Report - 2026-02-06 #1603

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

Mutation Testing Results

  • Caught: 541
  • Missed: 308

Top 10 Missed Mutations

crates/cashu/src/amount.rs:344:9: replace Amount<()>::saturating_sub -> Self with Default::default()
crates/cashu/src/amount.rs:344:18: replace > with == in Amount<()>::saturating_sub
crates/cashu/src/amount.rs:344:18: replace > with < in Amount<()>::saturating_sub
crates/cashu/src/amount.rs:344:18: replace > with >= in Amount<()>::saturating_sub
crates/cashu/src/amount.rs:347:18: replace - with + in Amount<()>::saturating_sub
crates/cashu/src/amount.rs:347:18: replace - with / in Amount<()>::saturating_sub
crates/cashu/src/nuts/nut00/mod.rs:727:9: replace PaymentMethod::is_bolt12 -> bool with true
crates/cashu/src/nuts/nut00/mod.rs:727:9: replace PaymentMethod::is_bolt12 -> bool with false
crates/cashu/src/nuts/nut00/mod.rs:768:9: replace <impl PartialEq<&str> for PaymentMethod>::eq -> bool with true
crates/cashu/src/nuts/nut00/mod.rs:774:9: replace <impl PartialEq<str> for PaymentMethod>::eq -> bool with true

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: 541 - ❌ Missed: 308 ### Top 10 Missed Mutations ``` crates/cashu/src/amount.rs:344:9: replace Amount<()>::saturating_sub -> Self with Default::default() crates/cashu/src/amount.rs:344:18: replace > with == in Amount<()>::saturating_sub crates/cashu/src/amount.rs:344:18: replace > with < in Amount<()>::saturating_sub crates/cashu/src/amount.rs:344:18: replace > with >= in Amount<()>::saturating_sub crates/cashu/src/amount.rs:347:18: replace - with + in Amount<()>::saturating_sub crates/cashu/src/amount.rs:347:18: replace - with / in Amount<()>::saturating_sub crates/cashu/src/nuts/nut00/mod.rs:727:9: replace PaymentMethod::is_bolt12 -> bool with true crates/cashu/src/nuts/nut00/mod.rs:727:9: replace PaymentMethod::is_bolt12 -> bool with false crates/cashu/src/nuts/nut00/mod.rs:768:9: replace <impl PartialEq<&str> for PaymentMethod>::eq -> bool with true crates/cashu/src/nuts/nut00/mod.rs:774:9: replace <impl PartialEq<str> for PaymentMethod>::eq -> bool with true ``` ### 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/21739191372) **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#1603
No description provided.