Skip to content

New Mutants Found #890

Closed
Closed

Description

@github-actions

Displaying up to the first 15 missed mutants:

payjoin/src/core/send/mod.rs:296:24: replace match guard with true
payjoin/src/core/send/v1.rs:53:93: replace + with -
payjoin/src/core/send/v1.rs:53:93: replace + with *
payjoin/src/core/send/v1.rs:53:89: replace + with -
payjoin/src/core/send/v1.rs:53:89: replace + with *
payjoin/src/core/send/v1.rs:53:93: replace + with -
payjoin/src/core/send/v1.rs:53:93: replace + with *
payjoin/src/core/send/v1.rs:53:89: replace + with -
payjoin/src/core/send/v1.rs:53:89: replace + with *

Running cargo mutants version: cargo-mutants 25.0.1
For the complete list, please check the mutants.out artifact.

Activity

  1. Cyber-Lord commented on Jul 20, 2025

    @Cyber-Lord
    Contributor

    This mutants look valid and worth addressing. From the logs here, most of them are arithmetic mutations (+ replaced with - or *) and a match guard replaced with true. I think these slipped through because the current tests aren’t asserting specific enough behavior in those paths.

    I can go through them one by one and either:

    • Add focused tests to catch the mutant, or

    • Exclude it with a TODO if the logic is intentionally flexible or hard to isolate cleanly.

    I’m not planning to skip these globally, Iwill handle them on a per-function basis to keep things precise. Let me know if the approach is okay and I'll take it up

  2. benalleng commented on Jul 20, 2025

    @benalleng
    Collaborator

    We already started a bit of this discussion earlier this week as I foresaw this mutant coming, this test was accidentally removed in #847 but already have done most of the work to fix these mutants in #882 thanks for being proactive though!

  3. added a commit that references this issue on Jul 30, 2025
    1f39170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions