Skip to content

test(version): cover carries, glued pre-release words and || bounds - #156

Merged
roxblnfk merged 1 commit into
feat/own-constraint-matcherfrom
test/pr155-gaps
Oct 11, 2026
Merged

roxblnfk merged 1 commit into
feat/own-constraint-matcherfrom
test/pr155-gaps

Conversation

@roxblnfk

Copy link
Copy Markdown
Member

What was changed

  • Tests only, src untouched: carrying an incremented part of nines in ^, ~ and wildcards (9.*, ~9.9, ^0.99, 1.99.*, 1.19.*), a pre-release word glued to a binary's version (tool 1.2.3beta2, tool 2.0.0alpha), pre-release bounds next to || without spaces (^1.0-beta||^2.0, ^1.0||^2.0-beta.1), and the lowest stability when the least stable bound comes last (>=1.0-RC1 || ^2.0-alpha.1).

Why?

A mutation review of #155 found these branches unprotected. Every new test passes on the current code and fails on its mutant: the carry digits in Range::increment(), the letter check in BinaryVersion's lookahead, | in Constraint's bound and single-term checks, and picking the first bound instead of the lowest.

Checklist

  • Tested
    • Unit tests added
    • Full suite run locally

@github-actions github-actions Bot added the tests label Oct 11, 2026
@roxblnfk
roxblnfk added this pull request to stack #157 October 11, 2026 16:00
@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Pin the branches a mutation review found unprotected: carrying an
incremented part of nines (`9.*`, `~9.9`, `^0.99`, `1.99.*`), a
pre-release word glued to a binary's version (`1.2.3beta2`), pre-release
bounds next to `||` without spaces, and the lowest stability when the
least stable bound comes last.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@roxblnfk
roxblnfk removed this pull request from stack #157 October 11, 2026 17:48
@roxblnfk
roxblnfk merged commit 1ddcb94 into feat/own-constraint-matcher Oct 11, 2026
22 checks passed
@roxblnfk
roxblnfk deleted the test/pr155-gaps branch October 11, 2026 17:48
roxblnfk added a commit that referenced this pull request Oct 11, 2026
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant