🧬 Weekly Mutation Testing Report - 2025-12-05 #1394

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

Mutation Testing Results

  • Caught: 337
  • Missed: 292

Top 10 Missed Mutations

crates/cashu/src/amount.rs:256:9: replace Amount::from_i64 -> Option<Self> with None
crates/cashu/src/amount.rs:256:9: replace Amount::from_i64 -> Option<Self> with Some(Default::default())
crates/cashu/src/amount.rs:256:18: replace >= with < in Amount::from_i64
crates/cashu/src/amount.rs:294:9: replace <impl From<&u64> for Amount>::from -> Self with Default::default()
crates/cashu/src/amount.rs:306:9: replace <impl AsRef<u64> for Amount>::as_ref -> &u64 with Box::leak(Box::new(0))
crates/cashu/src/amount.rs:306:9: replace <impl AsRef<u64> for Amount>::as_ref -> &u64 with Box::leak(Box::new(1))
crates/cashu/src/amount.rs:321:9: replace <impl std::ops::AddAssign for Amount>::add_assign with ()
crates/cashu/src/amount.rs:338:9: replace <impl std::ops::SubAssign for Amount>::sub_assign with ()
crates/cashu/src/amount.rs:348:9: replace <impl std::ops::Mul for Amount>::mul -> Self::Output with Default::default()
crates/cashu/src/amount.rs:357:9: replace <impl std::ops::Div for Amount>::div -> Self::Output with Default::default()

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 25.3.1


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

## Mutation Testing Results - ✅ Caught: 337 - ❌ Missed: 292 ### Top 10 Missed Mutations ``` crates/cashu/src/amount.rs:256:9: replace Amount::from_i64 -> Option<Self> with None crates/cashu/src/amount.rs:256:9: replace Amount::from_i64 -> Option<Self> with Some(Default::default()) crates/cashu/src/amount.rs:256:18: replace >= with < in Amount::from_i64 crates/cashu/src/amount.rs:294:9: replace <impl From<&u64> for Amount>::from -> Self with Default::default() crates/cashu/src/amount.rs:306:9: replace <impl AsRef<u64> for Amount>::as_ref -> &u64 with Box::leak(Box::new(0)) crates/cashu/src/amount.rs:306:9: replace <impl AsRef<u64> for Amount>::as_ref -> &u64 with Box::leak(Box::new(1)) crates/cashu/src/amount.rs:321:9: replace <impl std::ops::AddAssign for Amount>::add_assign with () crates/cashu/src/amount.rs:338:9: replace <impl std::ops::SubAssign for Amount>::sub_assign with () crates/cashu/src/amount.rs:348:9: replace <impl std::ops::Mul for Amount>::mul -> Self::Output with Default::default() crates/cashu/src/amount.rs:357:9: replace <impl std::ops::Div for Amount>::div -> Self::Output with Default::default() ``` ### 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/19952103591) **cargo-mutants version:** cargo-mutants 25.3.1 --- 💡 **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#1394
No description provided.