Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EqualToAssertion ¶
type EqualToAssertion struct {
// contains filtered or unexported fields
}
EqualToAssertion is an assertion that evaluates if the subject and the single additional parameter are equal to each other.
func EqualTo ¶
func EqualTo(y interface{}) *EqualToAssertion
EqualTo returns an EqualToAssertion for the provided comperand y.
func (*EqualToAssertion) EvaluateFor ¶
func (a *EqualToAssertion) EvaluateFor(x interface{}) *test.Result
EvaluateFor evalutes the assertion against the subject, x.
type FalseAssertion ¶
type FalseAssertion struct {
// contains filtered or unexported fields
}
FalseAssertion is an assertion that evaluates if the subject is false.
func (*FalseAssertion) EvaluateFor ¶
func (a *FalseAssertion) EvaluateFor(x interface{}) *test.Result
EvaluateFor evalutes the assertion against the subject, x.
type NilAssertion ¶
type NilAssertion struct {
// contains filtered or unexported fields
}
NilAssertion is an assertion that evaluates if the subject is nil.
func (*NilAssertion) EvaluateFor ¶
func (a *NilAssertion) EvaluateFor(x interface{}) *test.Result
EvaluateFor evalutes the assertion against the subject, x.
type NotEqualToAssertion ¶
type NotEqualToAssertion struct {
// contains filtered or unexported fields
}
NotEqualToAssertion is an assertion that evaluates if the subject and the single additional parameter are not equal to each other.
func NotEqualTo ¶
func NotEqualTo(y interface{}) *NotEqualToAssertion
NotEqualTo returns an NotEqualToAssertion for the provided comperand y.
func (*NotEqualToAssertion) EvaluateFor ¶
func (a *NotEqualToAssertion) EvaluateFor(x interface{}) *test.Result
EvaluateFor evalutes the assertion against the subject, x.
type NotNilAssertion ¶
type NotNilAssertion struct {
// contains filtered or unexported fields
}
NotNilAssertion is an assertion that evaluates if the subject is not nil.
func (*NotNilAssertion) EvaluateFor ¶
func (a *NotNilAssertion) EvaluateFor(x interface{}) *test.Result
EvaluateFor evalutes the assertion against the subject, x.
type TrueAssertion ¶
type TrueAssertion struct {
// contains filtered or unexported fields
}
TrueAssertion is an assertion that evaluates if the subject is true.
func (*TrueAssertion) EvaluateFor ¶
func (a *TrueAssertion) EvaluateFor(x interface{}) *test.Result
EvaluateFor evalutes the assertion against the subject, x.