Documentation ¶
Overview ¶
Package fault defines fault behaviors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fault ¶
type Fault struct {
// contains filtered or unexported fields
}
Fault describes the behavior of a single fault.
func (*Fault) ErrorCallbackInstead ¶
ErrorCallbackInstead invokes the provided function to return the error instead of calling the method.
func (*Fault) ErrorInstead ¶
ErrorInstead causes the fault to return the provided error instead of calling the method.
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set encapsulates a set of faults.
func (*Set) GetNextFault ¶
GetNextFault returns the error message to return on next fault.
func (*Set) VerifyAllFaultsExercised ¶
VerifyAllFaultsExercised fails the test if some faults have not been exercised.
Click to show internal directories.
Click to hide internal directories.