infection

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Launch

func Launch(pkg *types.Package, info *types.Info, node ast.Node, m models.Mutator) chan bool

Launch mutates the given node with the given mutator returning a channel to control the mutation steps. It traverses the AST of the given node and calls the method Check of the given mutator to verify that a node can be mutated by the mutator. If a node can be mutated the method Mutate of the given mutator is executed with the node and the control channel. After completion of the traversal the control channel is closed.

func Results

func Results(node ast.Node)

Results traverses the AST of the given node and prints every node to STDOUT.

func ResultsCount

func ResultsCount(pkg *types.Package, info *types.Info, node ast.Node, m models.Mutator) int

ResultsCount returns the number of corresponding mutations for a given mutator. It traverses the AST of the given node and calls the method Check of the given mutator for every node and sums up the returned counts. After completion of the traversal the final counter is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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