Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareValues ¶
CompareValues compares an expected value to an actual value.
Types ¶
type Predicate ¶
type Predicate func(interface{}) error
A Predicate is a function that takes a test result value and possibly returns an error.
func Bool ¶
Bool creates a predicate requiring a value to be a bool, optionally matching against a set of values.
func Float64 ¶
Float64 creates a predicate requiring a value to be a float64, optionally matching against a set of values.
func Int64 ¶
Int64 creates a predicate requiring a value to be an int64, optionally matching against a set of values.
func Map ¶
Map creates a predicate requiring a value to be a map, optionally matching against a set of values.
func Slice ¶
func Slice(expected ...[]interface{}) Predicate
Slice creates a predicate requiring a value to be a slice, optionally matching against a set of values.