Documentation ¶
Index ¶
- func Always(condition bool, message string, details map[string]any)
- func AlwaysOrUnreachable(condition bool, message string, details map[string]any)
- func AssertRaw(cond bool, message string, details map[string]any, ...)
- func Reachable(message string, details map[string]any)
- func Sometimes(condition bool, message string, details map[string]any)
- func Unreachable(message string, details map[string]any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Always ¶ added in v0.1.15
Assert that condition is true every time this function is called, AND that it is called at least once. This test property will be viewable in the "Antithesis SDK: Always" group of your triage report.
func AlwaysOrUnreachable ¶ added in v0.1.15
Assert that condition is true every time this function is called. Unlike the Always function, the test property spawned by AlwaysOrUnreachable will not be marked as failing if the function is never invoked. This test property will be viewable in the "Antithesis SDK: Always" group of your triage report.
func AssertRaw ¶ added in v0.1.18
func AssertRaw(cond bool, message string, details map[string]any, classname, funcname, filename string, line int, hit bool, mustHit bool, assertType string, displayType string, id string, )
This is a low-level method designed to be used by third-party frameworks. Regular users of the assert package should not call it.
func Reachable ¶ added in v0.1.10
Assert that a line of code is reached at least once. The test property spawned by Reachable will be marked as failing if this function is never called. This test property will be viewable in the "Antithesis SDK: Reachablity assertions" group.
func Sometimes ¶ added in v0.1.15
Assert that condition is true at least one time that this function was called. The test property spawned by Sometimes will be marked as failing if this function is never called, or if condition is false every time that it is called. This test property will be viewable in the "Antithesis SDK: Sometimes" group.
func Unreachable ¶ added in v0.1.10
Assert that a line of code is never reached. The test property spawned by Unreachable will be marked as failing if this function is ever called. This test property will be viewable in the "Antithesis SDK: Reachablity assertions" group.
Types ¶
This section is empty.