Documentation ¶
Overview ¶
Package check provides a set of functions that can be used for error checking in table-driven test.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
Check is a function that checks for an error or absence of it.
func EqualError ¶
EqualError returns a function that checks for a specific error text.
func ErrorAs ¶
ErrorAs returns a function that checks that error can be converted to a specific type.
func ErrorContains ¶
ErrorContains returns a function that checks that error message contains a specific text.
func ErrorRegexp ¶
ErrorRegexp returns a function that checks that error message matches a specific regexp.
func ErrorTagIs ¶
ErrorTagIs returns a function that checks that error has a specific tag.
Click to show internal directories.
Click to hide internal directories.