Documentation ¶
Index ¶
- func AssertBool(t *testing.T, err error, key string, exp bool, args ...interface{})
- func AssertCause(t *testing.T, err error, cause string, args ...interface{})
- func AssertCode(t *testing.T, err error, exp string, args ...interface{})
- func AssertContains(t *testing.T, err error, cause string, args ...interface{})
- func AssertEqual(t *testing.T, exp, got error, args ...interface{})
- func AssertFloat64(t *testing.T, err error, key string, exp float64, args ...interface{})
- func AssertInt(t *testing.T, err error, key string, exp int, args ...interface{})
- func AssertInt64(t *testing.T, err error, key string, exp int64, args ...interface{})
- func AssertNoKey(t *testing.T, err error, key string, args ...interface{})
- func AssertStr(t *testing.T, err error, key, exp string, args ...interface{})
- func AssertTime(t *testing.T, err error, key string, exp time.Time, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertBool ¶
AssertBool asserts err is instance of zrr.Error and has key with value exp.
func AssertCause ¶ added in v0.3.1
AssertCause asserts err is instance of zrr.Error and has error message (without key value pairs) equal to cause.
func AssertCode ¶ added in v0.3.1
AssertCode asserts err is instance of zrr.Error and has error code exp.
func AssertContains ¶ added in v0.5.0
AssertContains asserts err is instance of zrr.Error and has error message (without key value pairs) which contains cause string.
func AssertEqual ¶ added in v0.5.0
AssertEqual asserts err and got are instance of zrr.Error and their error messages (with key value pairs) are equal.
func AssertFloat64 ¶
AssertFloat64 asserts err is instance of zrr.Error and has key with value exp.
func AssertInt64 ¶ added in v0.5.0
AssertInt64 asserts err is instance of zrr.Error and has key with value exp.
func AssertNoKey ¶ added in v0.9.0
AssertNoKey asserts err is instance of zrr.Error and has no key set.
Types ¶
This section is empty.