Documentation ¶
Index ¶
- func Equal(t *testing.T, exp, got interface{}, args ...interface{})
- func IsFalse(t *testing.T, result bool, args ...interface{})
- func IsNull(t *testing.T, got interface{}, args ...interface{})
- func IsTrue(t *testing.T, result bool, args ...interface{})
- func Matches(t *testing.T, value, expr string)
- func NotEqual(t *testing.T, exp, got interface{}, args ...interface{})
- func Panic(t *testing.T, fn func(), matches string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
Equal Judge whether the values are not equal
@param t test @param exp expect result @param got compared value @param args error prompt content
func IsFalse ¶
IsFalse Judge whether the value is false
@param t test @param result false @param args error prompt content
func IsNull ¶
IsNull Judge whether the value is nil
@param t test @param got want type @param args error prompt content
func IsTrue ¶
IsTrue Judge whether the value is true
@param t test @param result true @param args error prompt content
func Matches ¶ added in v0.0.9
Matches asserts that a value matches a given regular expression.
@param t test @param value value @param expr got
func NotEqual ¶
NotEqual Judge whether the values are equal
@param t test @param exp expect result @param got compared value @param args error prompt content
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.