Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHandler ¶
type MockHandler struct { BeforeCalled bool BeforeError bool DoneCalled bool DoneError bool ErrorCalled bool ErrorError bool Err error // callbacks useful for testing BeforeCallback func() DoneCallback func() }
MockHandler is a mock hookstate.Handler.
func (*MockHandler) Before ¶
func (h *MockHandler) Before() error
Before satisfies hookstate.Handler.Before
func (*MockHandler) Error ¶
func (h *MockHandler) Error(err error) error
Error satisfies hookstate.Handler.Error
Click to show internal directories.
Click to hide internal directories.