execute

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMutationSurvived means that mutation go tests passed after mutation is applied.
	ErrMutationSurvived = errors.New("mutation survived")

	// ErrCompilationError means that mutation is pointless and leads to broken code.
	ErrCompilationError = errors.New("compilation error")
)

Functions

func Custom

func Custom(ctx context.Context, execArgs []string, opts CustomMutationOptions) error

Custom allows to execute custom command.

func GoTest

func GoTest(ctx context.Context, pkgName string, recursive bool) error

Default executes default go test command and returns is mutation was "killed", i.e. tests failed.

Types

type CustomMutationOptions

type CustomMutationOptions struct {
	Changed       string
	Original      string
	Package       string
	Debug         bool
	Verbose       bool
	Timeout       uint
	TestRecursive bool
}

Jump to

Keyboard shortcuts

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