mutation-testing.md 1.0 KB


name: Mutation Testing Improvement about: Track improvements to mutation test coverage title: '[Mutation] ' labels: 'mutation-testing, enhancement' assignees: ''


Mutation Details

File: crates/cashu/src/... Line: 123 Mutation: replace foo() with bar()

Current Status: MISSED

Why This Matters

Proposed Fix

Test Strategy

  • Add negative test case
  • Add edge case test
  • Add integration test
  • Other: ___________

Expected Test

#[test]
fn test_() {
    // Test that ensures this mutation would be caught
}

Verification

After implementing the fix:

# Run mutation test on specific file
cargo mutants --file crates/cashu/src/...

# Or run mutation test on the specific function
cargo mutants --file crates/cashu/src/... --re "function_name"

Expected result: Mutation should be CAUGHT

Related