Documentation
¶
Overview ¶
Package chaostest provides testing.TB integration helpers for chaotic. The most-used function is New, which returns a fresh engine bound to the test's t.Cleanup so faults from one test never leak into another.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEventsExhausted ¶
AssertEventsExhausted fails t if any named rule on eng has not fired at least once. Useful for asserting "every chaos rule I configured was actually exercised by my test".
func AssertHits ¶
AssertHits fails t with a clear message if eng has not fired ruleName exactly want times.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.