mutation

package
v0.0.0-...-f7b6625 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mutate

func Mutate(
	opts models.Options,
	mutators []models.MutatorItem,
	mutationBlackList map[string]struct{},
	pkg *types.Package,
	info *types.Info,
	file string,
	fset *token.FileSet,
	src ast.Node,
	node ast.Node,
	tmpFile string,
	execs []string,
	stats *models.MutationStats,
) int

func MutateExec

func MutateExec(opts models.Options, pkg *types.Package, file string, mutationFile string, execs []string) (models.MutationResult, error)

func MutationsWithExecs

func MutationsWithExecs(
	opts models.Options,
	pkg *types.Package,
	file string,
	execs []string,
	mutationFile string,
) (models.MutationResult, error)

func MutationsWithoutExecs

func MutationsWithoutExecs(opts models.Options, pkg *types.Package, file string, mutationFile string) (models.MutationResult, error)

func ProcessFile

func ProcessFile(
	opts models.Options,
	tmpDir, file string,
	mutators []models.MutatorItem,
	mutationBlackList map[string]struct{},
	execs []string,
	stats *models.MutationStats,
) error

ProcessFile todo isolate code that would be infected.

Types

This section is empty.

Jump to

Keyboard shortcuts

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