Documentation ¶
Overview ¶
Package assert contains common assert methods.
Index ¶
- func Assert(t *testing.T, b bool)
- func BoolsEqual(t *testing.T, a, b bool)
- func ErrorContains(t *testing.T, err error, s string)
- func IntsEqual(t *testing.T, a, b int)
- func NilError(t *testing.T, err error)
- func StringArrsEqual(t *testing.T, a, b []string)
- func StringsEqual(t *testing.T, a, b string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolsEqual ¶
BoolsEqual checks that the two bools are equal.
func ErrorContains ¶
ErrorContains checks that the given string exists in an error.
func StringArrsEqual ¶
StringArrsEqual checks that the two string arrays are equal.
func StringsEqual ¶
StringsEqual checks that the two strings are equal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.