Skip to content

test: close mutation coverage gaps - #12

Merged
tyrsson merged 1 commit into
1.0.xfrom
fix/kill-escaped-mutants
Sep 3, 2026
Merged

tyrsson merged 1 commit into
1.0.xfrom
fix/kill-escaped-mutants

Conversation

@tyrsson

@tyrsson tyrsson commented Sep 3, 2026

Copy link
Copy Markdown
Member

Closes the escaped-mutant gaps surfaced by the mutation test (Infection) — brings Covered Code MSI to 100%.

  • Asserts the hops argument in the NotificationMiddleware tests.
  • Adds coverage for the addHop and prepareMessages continue branches.
  • Normalizes sendNow hops ($hops ??= 1) so the null-hops mutant is no longer behaviorally equivalent.

Verified: composer test (69 tests, 139 assertions), composer mutation-test (0 escaped, 100% MSI), mago format/lint/analyze/guard all clean.

Asserts the hops argument in the notification middleware tests, covers the addHop and prepareMessages continue branches, and normalizes sendNow hops so the null-hops mutant is no longer equivalent.
@tyrsson tyrsson self-assigned this Sep 3, 2026
@tyrsson tyrsson added the ims-migration Package moving out of the inventory-management-system application label Sep 3, 2026
@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tyrsson
tyrsson merged commit d7906de into 1.0.x Sep 3, 2026
11 checks passed
@tyrsson
tyrsson deleted the fix/kill-escaped-mutants branch September 3, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ims-migration Package moving out of the inventory-management-system application

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant