Repository navigation
Fix #43: Code evaluated only at compile time is never mutated, and the run doesn't say so - #68
Merged
lefticus merged 4 commits intoNov 22, 2026
Conversation
…, and mutate it with --compile-time strain mutated only lines gcov counted as executed, so constexpr/consteval functions used only in constant expressions (static_assert, template arguments, constexpr initialisers) were never mutated, and nothing said so. The runner now finds those functions' unexecuted lines with operators and lists them as "not mutated: evaluated at compile time only", with a count in the console summary and summary.md. With --compile-time it mutates them too: a mutant whose only compiler errors are failed static_asserts or constant evaluations is killed_at_compile_time (scored as a detection and remembered in the build cache), while any other error keeps it a compile_error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
@leftibot fix the errors |
Contributor
Author
|
✅ leftibot finished addressing the review feedback. |
…tting The tests from cpp-best-practices#61 and cpp-best-practices#62, merged into main, disagreed about the project's name: the code prints "mutant_strain" and installs the `mutant_strain` command, so the summary, Textual warning and wheel entry-point tests now expect that, and the distribution test compares PyPI-normalised names (`mutant-strain` is the published name). Also adds the blank line ruff format wants in tests/test_end_to_end.py. Requested by @lefticus in PR cpp-best-practices#68 review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Splits the scheduling options out of _add_selection_arguments, the mutant planning out of Runner.run_test, and the group, brace and declaration checks out of compile_time._body_start. Requested by @lefticus in PR cpp-best-practices#68 review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Addressed review feedback from @lefticus. New commits: |
Member
|
@leftibot still have failing tests |
Contributor
Author
|
✅ leftibot finished addressing the review feedback. |
…ime end-to-end test On macOS, Clang reports "static assertion failed due to requirement '...'", so the cached detail no longer matched the GCC-only literal. The test now matches either form. The project validator job also fails, on fuzz-testing, status-badges and type-checking. Those checks fail on main too and are outside this PR. Requested by @lefticus in PR cpp-best-practices#68 review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Addressed review feedback from @lefticus. New commits: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated fix by @leftibot.
What changed
Files
Closes #43
Triggered by @lefticus.