zrrtest

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2022 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertBool

func AssertBool(t *testing.T, err error, key string, exp bool, args ...interface{})

AssertBool asserts err is instance of zrr.Error and has key with value exp.

func AssertCause added in v0.3.1

func AssertCause(t *testing.T, err error, cause string, args ...interface{})

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

func AssertCode(t *testing.T, err error, exp string, args ...interface{})

AssertCode asserts err is instance of zrr.Error and has error code exp.

func AssertContains added in v0.5.0

func AssertContains(t *testing.T, err error, cause string, args ...interface{})

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

func AssertEqual(t *testing.T, exp, got error, args ...interface{})

AssertEqual asserts err and got are instance of zrr.Error and their error messages (with key value pairs) are equal.

func AssertFloat64

func AssertFloat64(t *testing.T, err error, key string, exp float64, args ...interface{})

AssertFloat64 asserts err is instance of zrr.Error and has key with value exp.

func AssertInt

func AssertInt(t *testing.T, err error, key string, exp int, args ...interface{})

AssertInt asserts err is instance of zrr.Error and has key with value exp.

func AssertInt64 added in v0.5.0

func AssertInt64(t *testing.T, err error, key string, exp int64, args ...interface{})

AssertInt64 asserts err is instance of zrr.Error and has key with value exp.

func AssertNoKey added in v0.9.0

func AssertNoKey(t *testing.T, err error, key string, args ...interface{})

AssertNoKey asserts err is instance of zrr.Error and has no key set.

func AssertStr

func AssertStr(t *testing.T, err error, key, exp string, args ...interface{})

AssertStr asserts err is instance of zrr.Error and has key with value exp.

func AssertTime

func AssertTime(t *testing.T, err error, key string, exp time.Time, args ...interface{})

AssertTime asserts err is instance of zrr.Error and has key with value exp.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL