Repository navigation
Conversation
fchimpan
force-pushed
the
fix/mutation-correctness-and-regressions
branch
from
September 13, 2026 07:56
08ebbfb to
090377c
Compare
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.
Valid comparisons could be silently omitted, fail to compile after instrumentation, or produce misleading mutation scores. This fixes discovery, instrumentation, process cleanup, and reporting, with regression tests for the original failures and regressions found during before/after verification.
Changes
len/capcomparisons; discover cgo files; propagate parse/read failures; use physical positions for//lineand skip directives.go env GOARCHfor target type sizes.else; retain floats, map entries, globals, calls, and different assigned values.Fixes #43.
Behavioral impact
Single-package runs can take longer because their mutant tests are now sequential. Type information loading can also add discovery time, particularly with a cold build cache. Each process retains at most the last 64 KiB of diagnostic output, with a truncation marker.
Validation
go test ./... -race -count=1andgo test ./... -race -cover— all nine packages passed.go run . -diff origin/main -threshold 100 ./...— 67 killed, 0 survived, score 100%. Added package-local tests for 17 surviving mutants; documented one equivalent buffer boundary and replaced an equivalent exit-code boundary withProcessState.Exited().go vet ./...,go fix ./..., andgit diff --checkpassed.go 1.20module directive, JSON/NDJSON, test filtering, packages without tests, multiple packages, build tags, embed, and workspaces.Execution checks ran on Go 1.27.0 / macOS arm64. Cross-builds do not establish runtime behavior on Windows/Linux; the
go 1.20directive case was run with Go 1.27, not a Go 1.20 toolchain.