Documentation
¶
Index ¶
- func MutatorDeferRemove(_ *types.Package, _ *types.Info, node ast.Node) []mutator.Mutation
- func MutatorRemoveSelfAssign(_ *types.Package, _ *types.Info, node ast.Node) []mutator.Mutation
- func MutatorRemoveStatement(pkg *types.Package, info *types.Info, node ast.Node) []mutator.Mutation
- func MutatorReturnValue(pkg *types.Package, info *types.Info, node ast.Node) []mutator.Mutation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MutatorDeferRemove ¶ added in v2.6.7
MutatorDeferRemove removes the defer keyword, turning deferred calls into immediate calls. This tests whether the timing of cleanup matters for correctness — e.g. mutex unlocks, file closes, and span finishes that must happen after (not during) the function body.
func MutatorRemoveSelfAssign ¶ added in v2.6.1
MutatorRemoveSelfAssign removes self-assignment statements (a = a). Mirrors gremlins' REMOVE_SELF_ASSIGNMENTS operator.
func MutatorRemoveStatement ¶
MutatorRemoveStatement implements a mutator to remove statements.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.