Documentation ¶
Index ¶
- func Equals(t Tester, expected, actual interface{}, msg ...interface{}) bool
- func Error(t Tester, err error, msg ...interface{}) bool
- func False(t Tester, condition bool, msg ...interface{}) bool
- func Fatal(t Tester, condition bool, msg ...interface{})
- func FatalError(t Tester, err error, msg ...interface{})
- func HasPrefix(t Tester, s, p string, msg ...interface{}) bool
- func HasSuffix(t Tester, s, suffix string, msg ...interface{}) bool
- func Len(t Tester, expected int, value interface{}, msg ...interface{}) bool
- func Nil(t Tester, value interface{}, msg ...interface{}) bool
- func NoError(t Tester, err error, msg ...interface{}) bool
- func NotEquals(t Tester, expected, actual interface{}, msg ...interface{}) bool
- func NotNil(t Tester, value interface{}, msg ...interface{}) bool
- func Panic(t Tester, f func(), msg ...interface{}) (ret bool)
- func True(t Tester, condition bool, msg ...interface{}) bool
- func Type(t Tester, expected, value interface{}, msg ...interface{}) bool
- type Tester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
Fatal checks that a condition is true or marks the test as failed and stop it's execution.
func FatalError ¶
FatalError checks that a error is nil or marks the test as failed and stop it's execution.
Types ¶
Click to show internal directories.
Click to hide internal directories.