Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllPass = "all labels will pass if provided this magic string"
AllPass will always pass the test.
View Source
var AnyVal = anyVal{}
AnyVal will pass the test so long as the key for this value exists.
Functions ¶
func Contains ¶
Contains checks whether the errOrCtx (which should contain either an error or context.Context) contains the provided key:value pairs.
Returns true if the test fails.
func ContainsLabels ¶
ContainsLabels checks whether the error(which should contain a cluerr.Err) contains the labels. If provided zero labels to check against, asserts that the error contains zero labels. Can be provided tester.AllPass to skip the check for a single test case.
Returns true if the test fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.