magemutation

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMutation = errors.New("mutation testing failed")

Functions

func Mutation

func Mutation(path string) error

Mutation runs gremlins mutation testing scoped to the given package path (e.g. './internal/rpm'). Pass './' to run the whole repository, which takes a few minutes; scoping to a package gives quicker feedback. The console lists only the mutants worth acting on, and a full JSON report is written to the build output directory.

func MutationDiff

func MutationDiff(ref string) error

MutationDiff runs gremlins mutation testing only on the lines changed relative to the given git ref (e.g. 'main'). This is the fastest way to check whether a branch's changes are covered by tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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