Documentation
¶
Overview ¶
Package skip provides functions for skipping based on a condition.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func If ¶
func If(t skipT, condition BoolOrCheckFunc, msgAndArgs ...interface{})
If skips the test if the check function returns true. The skip message will contain the name of the check function. Extra message text can be passed as a format string with args
func IfCondition ¶
func IfCondition(t skipT, condition bool, msgAndArgs ...interface{})
IfCondition skips the test if the condition is true. The skip message will contain the source of the expression passed as the condition. Extra message text can be passed as a format string with args.
Deprecated: Use If() which now accepts bool arguments
Types ¶
type BoolOrCheckFunc ¶
type BoolOrCheckFunc interface{}
BoolOrCheckFunc can be a bool or func() bool, other types will panic