Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrErrorWasExpected = "An Error was expected, but None was received" ErrfNoErrorWasExpected = "No Error was expected, but One was received: %v" ErrfNotEqual = `Values should be equal, but they are not. A=%v B=%v Diff=%v` ErrfNotDifferent = `Values should be different, but they are not. A=%v B=%v Diff=%v` )
Error messages.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
Test object helps to make tests.
func (*Test) MustBeAnError ¶
MustBeAnError ensures that the error is not nil. If the error is nil, it stops the test.
func (*Test) MustBeDifferent ¶
MustBeDifferent ensures that two variables have different values. If not, it stops the test.
func (*Test) MustBeEqual ¶
MustBeEqual ensures that two variables have equal values. If not, it stops the test.
func (*Test) MustBeNoError ¶
MustBeNoError ensures that the error is nil. If the error is not nil, it stops the test.
Click to show internal directories.
Click to hide internal directories.