🧬 Weekly Mutation Testing Report - 2026-01-30 #1585

Closed
opened 2026-01-30 07:26:08 +00:00 by github-actions[bot] · 0 comments
github-actions[bot] commented 2026-01-30 07:26:08 +00:00 (Migrated from github.com)

Mutation Testing Results

  • Caught: 537
  • Missed: 311

Top 10 Missed Mutations

crates/cashu/src/nuts/nut00/mod.rs:596:13: delete match arm "MSAT" in <impl FromStr for CurrencyUnit>::from_str
crates/cashu/src/nuts/nut00/mod.rs:597:13: delete match arm "USD" in <impl FromStr for CurrencyUnit>::from_str
crates/cashu/src/nuts/nut00/mod.rs:598:13: delete match arm "EUR" in <impl FromStr for CurrencyUnit>::from_str
crates/cashu/src/nuts/nut00/mod.rs:599:13: delete match arm "AUTH" in <impl FromStr for CurrencyUnit>::from_str
crates/cashu/src/nuts/nut00/mod.rs:664:9: replace <impl fmt::Display for KnownMethod>::fmt -> fmt::Result with Ok(Default::default())
crates/cashu/src/nuts/nut00/mod.rs:712:9: replace PaymentMethod::is_known -> bool with true
crates/cashu/src/nuts/nut00/mod.rs:712:9: replace PaymentMethod::is_known -> bool with false
crates/cashu/src/nuts/nut00/mod.rs:717:9: replace PaymentMethod::is_custom -> bool with true
crates/cashu/src/nuts/nut00/mod.rs:717:9: replace PaymentMethod::is_custom -> bool with false
crates/cashu/src/nuts/nut00/mod.rs:722:9: replace PaymentMethod::is_bolt11 -> 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.1.2


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

## Mutation Testing Results - ✅ Caught: 537 - ❌ Missed: 311 ### Top 10 Missed Mutations ``` crates/cashu/src/nuts/nut00/mod.rs:596:13: delete match arm "MSAT" in <impl FromStr for CurrencyUnit>::from_str crates/cashu/src/nuts/nut00/mod.rs:597:13: delete match arm "USD" in <impl FromStr for CurrencyUnit>::from_str crates/cashu/src/nuts/nut00/mod.rs:598:13: delete match arm "EUR" in <impl FromStr for CurrencyUnit>::from_str crates/cashu/src/nuts/nut00/mod.rs:599:13: delete match arm "AUTH" in <impl FromStr for CurrencyUnit>::from_str crates/cashu/src/nuts/nut00/mod.rs:664:9: replace <impl fmt::Display for KnownMethod>::fmt -> fmt::Result with Ok(Default::default()) crates/cashu/src/nuts/nut00/mod.rs:712:9: replace PaymentMethod::is_known -> bool with true crates/cashu/src/nuts/nut00/mod.rs:712:9: replace PaymentMethod::is_known -> bool with false crates/cashu/src/nuts/nut00/mod.rs:717:9: replace PaymentMethod::is_custom -> bool with true crates/cashu/src/nuts/nut00/mod.rs:717:9: replace PaymentMethod::is_custom -> bool with false crates/cashu/src/nuts/nut00/mod.rs:722:9: replace PaymentMethod::is_bolt11 -> 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/21504756030) **cargo-mutants version:** cargo-mutants 26.1.2 --- 💡 **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#1585
No description provided.