Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertActual ¶
func AssertActual(a actualAssertion, actual interface{}, msgAndArgs ...interface{}) error
assertActual is a helper function to allow the step function to call assertion functions where you want to compare an actual value to a predefined state like nil, empty or true/false.
func AssertExpectedAndActual ¶
func AssertExpectedAndActual(a ExpectedAndActualAssertion, expected, actual interface{}, msgAndArgs ...interface{}) error
assertExpectedAndActual is a helper function to allow the step function to call assertion functions where you want to compare an expected and an actual value.
func FormatError ¶
Types ¶
type Asserter ¶
type Asserter struct {
// contains filtered or unexported fields
}
asserter is used to be able to retrieve the error reported by the called assertion
Click to show internal directories.
Click to hide internal directories.