Documentation
¶
Overview ¶
Package fault holds the fault-injection points that tests use to crash, delay or fail the gateway at exact places.
The points act only in binaries built with the faultinject tag and are chosen by environment variables; without the tag every point is a no-op, so a shipped binary has no way to trigger one. The package imports no other internal package. Any gateway package may call it; nothing outside tests may depend on a point having an effect.
Index ¶
- func CancelPoint(context.Context, string)
- func CandidateReadFault() error
- func CrashPoint(string)
- func RateClockFault() (int64, bool)
- func RollbackFault() error
- func SignalCapture(string, string)
- func TimerFault() bool
- func WallOffset() time.Duration
- func WriteAudit(file *os.File, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelPoint ¶
func CandidateReadFault ¶
func CandidateReadFault() error
func CrashPoint ¶
func CrashPoint(string)
func RateClockFault ¶
func RollbackFault ¶
func RollbackFault() error
func SignalCapture ¶
func TimerFault ¶
func TimerFault() bool
func WallOffset ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.