is

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 3 Imported by: 0

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 False

func False() *FalseAssertion

False returns an FalseAssertion.

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 Nil

func Nil() *NilAssertion

Nil returns an NilAssertion.

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 NotNil

func NotNil() *NotNilAssertion

NotNil returns an NotNilAssertion.

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 True

func True() *TrueAssertion

True returns an TrueAssertion.

func (*TrueAssertion) EvaluateFor

func (a *TrueAssertion) EvaluateFor(x interface{}) *test.Result

EvaluateFor evalutes the assertion against the subject, x.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL