Documentation ¶
Index ¶
- func AssertEqual(t T, expected, actual interface{}, msgAndArgs ...interface{}) bool
- func AssertNotEqual(t T, expected, actual interface{}, msgAndArgs ...interface{}) bool
- func RequireEqual(t T, expected, actual interface{}, msgAndArgs ...interface{})
- func RequireNotEqual(t T, expected, actual interface{}, msgAndArgs ...interface{})
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
AssertEqual checks that expected and actual are equal.
Marks caller function as having failed but continues execution.
Returns true iff arguments are equal.
func AssertNotEqual ¶
AssertNotEqual checks that expected and actual are not equal.
Marks caller function as having failed but continues execution.
Returns true iff arguments are not equal.
func RequireEqual ¶
func RequireEqual(t T, expected, actual interface{}, msgAndArgs ...interface{})
RequireEqual does the same as AssertEqual but fails caller test immediately.
func RequireNotEqual ¶
func RequireNotEqual(t T, expected, actual interface{}, msgAndArgs ...interface{})
RequireNotEqual does the same as AssertNotEqual but fails caller test immediately.
Types ¶
Click to show internal directories.
Click to hide internal directories.