selectmutator

package
v2.7.6 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MutatorSelectCaseRemove

func MutatorSelectCaseRemove(_ *types.Package, _ *types.Info, node ast.Node) []mutator.Mutation

MutatorSelectCaseRemove removes one non-default case at a time from a select statement. Each mutation tests whether the program still behaves correctly when a particular channel event can never fire.

func MutatorSelectDefaultRemove

func MutatorSelectDefaultRemove(_ *types.Package, _ *types.Info, node ast.Node) []mutator.Mutation

MutatorSelectDefaultRemove removes the default clause from a select statement. This turns a non-blocking select into a blocking one, catching tests that verify the program does not stall when no channel is ready.

Types

This section is empty.

Jump to

Keyboard shortcuts

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