Documentation ¶
Overview ¶
Package assertive provides two boolean assertion functions, both compatible with the standard testing.T type. They avoid repetitive boilerplate around T.Error and T.Fatal and augment those functions with extracted source code. See this package's tests for usage examples.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Need ¶
func Need(t miniT, condition bool)
Need marks the test as failed if condition is false and stops execution of the running test. Use this function when the test cannot continue after the current assertion fails, due to cascading failures or because it makes no sense to continue the execution for any other reason.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.