refactor: overlay-based mutation and improved output handling#44
Merged
refactor: overlay-based mutation and improved output handling#44
Conversation
451aec1 to
c087d87
Compare
Replace file-based mutation approach with Go's -overlay flag. - Add OverlayMutator using Go's overlay feature for isolated mutations - Remove old file-based mutator that modified files in place - Each mutation uses isolated overlay files, eliminating file contention - Original files remain intact even if process is killed mid-execution
- Change default output from json to console (summary only to stdout) - File formats (json/html/text) now write to files without stdout spam - Add progress indicators showing per-file processing status - Respect --output flag and generate only specified format
- Fix deprecated homebrew_casks.binary property - Fix deprecated conflicts.formula property - Update README.md to reflect current CLI implementation - Add .gitignore for examples directory
c087d87 to
35e4040
Compare
Contributor
🧬 Mutation Testing Results✅ Quality Gate: PASSED Overall Mutation Score: 24.6% Files with Mutations
Generated by gomu mutation testing |
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.
Summary
-overlayflag for crash-safe testingChanges
Overlay-based Mutation (Crash-safe)
internal/execution/overlay.go- OverlayMutator using Go's overlay featureinternal/execution/overlay_test.go- Comprehensive tests for overlay functionalityinternal/execution/mutator.go- Old file-based mutation approachinternal/execution/mutator_test.go- Tests for removed mutatorinternal/execution/engine.go- Updated to use overlay for compilation and test executionOutput Handling Improvements
jsontoconsole(summary only to stdout)--output json/html/textnow write to files without stdout spamOther Fixes
homebrew_casks.binary,conflicts.formula)Benefits
Test plan
-raceflagTestOverlayParallelExecution) verifies concurrent safety