Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertErrorMatch ¶
AssertErrorMatch (t, "failed to open", err) would fail with a Fatal error if the string did not match.
func AssertNoError ¶
AssertNoError fails if there's an error
func ErrorMatch ¶
ErrorMatch returns true if an error matches the required string.
e.g. ErrorMatch(t, "failed to open", err) would return true if the err passed in had a string that matched.
The message can be a regular expression, and if this fails to compile, then the test will fail.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.