Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrCheck ¶
ErrCheck is a type of function that can be passed in that forces an return of some error
func ForcedError ¶
ForcedError creates an ErrCheck that returns err for any functions with names
type ErrChecker ¶
type ErrChecker struct {
// contains filtered or unexported fields
}
ErrChecker is used to force errors for testing error code paths
func (*ErrChecker) CheckForError ¶
func (ec *ErrChecker) CheckForError(s string) error
CheckForError check to see if an error should be thrown based on the existence ErrCheck and whether it returns an error
func (*ErrChecker) SetErrorCheck ¶
func (ec *ErrChecker) SetErrorCheck(errCheck ErrCheck)
SetErrorCheck sets the ErrCheck for this instance
Click to show internal directories.
Click to hide internal directories.