mutcheck

command
v0.1.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package main is the program behind `task mutate:check` (spec mutation-check). It runs the experiment of docs/testing.md, "Show that the test can fail", for one wrong change to one Go source file, and classifies the outcome by rule as detection, survivor, invalid or inconclusive.

go run ./internal/harness/mutcheck -pkg ./internal/x -test TestY -file internal/x/y.go \
  -mutant /tmp/y.go -expect y_test.go:42

The wrong change reaches every build of a mutant run through GOFLAGS=-overlay=<file>, so the program writes nothing in the repository: the overlay, its copy of the wrong change and the logs are in a temporary directory outside it. It runs from the module's root, prints a report whose last line is the verdict, and exits zero only for detection.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL