Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAssertion = errors.New("assertion error")
)
Functions ¶
func FormatValue ¶
func NewNegativeAssertion ¶
func NewPositiveAssertion ¶
Types ¶
type Assertion ¶
type Assertion struct { DefaultMessage MessageFn MinArgs int MaxArgs int Fn AssertionFn }
type CompareOperator ¶
type CompareOperator int
const ( NotEqualOp CompareOperator = 0 EqualOp CompareOperator = 1 LessOp CompareOperator = 2 LessOrEqualOp CompareOperator = 3 GreaterOp CompareOperator = 4 GreaterOrEqualOp CompareOperator = 5 )
func (CompareOperator) String ¶
func (op CompareOperator) String() string
Click to show internal directories.
Click to hide internal directories.