package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Packages

# Functions

ConstantWithTestBool is like ConstantWithTestValue except it returns the non-default value half of the time (if running a metamorphic build).
ConstantWithTestBoolWithoutLogging is like ConstantWithTestBool except it does not log the value.
ConstantWithTestChoice is like ConstantWithTestValue except it returns a random choice (equally weighted) of the given values.
ConstantWithTestRange is like ConstantWithTestValue except instead of returning a single metamorphic test value, it returns a random test value in the semi-open range [min, max).
ConstantWithTestValue should be used to initialize "magic constants" that should be varied during test scenarios to check for bugs at boundary conditions.
IsMetamorphicBuild returns whether this build is metamorphic.

# Constants

DisableMetamorphicEnvVar can be used to disable metamorphic tests for sub-processes.
MetamorphicOverridesEnvVar can be used to set metamorphic variables to specific values.