Documentation ¶
Index ¶
- func Any() func(t *testing.T, a interface{})
- func ErrorOrNil(err interface{}) error
- type ApiMethodCall
- type Recorder
- func (r *Recorder) Add(name string, args []interface{}, result []interface{})
- func (r *Recorder) CheckThatAllRecordedMethodsHaveBeenCalled()
- func (r *Recorder) Namespace() string
- func (r *Recorder) Shift(name string) (*ApiMethodCall, error)
- func (r *Recorder) VerifyCall(name string, args ...interface{}) *ApiMethodCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiMethodCall ¶
type ApiMethodCall struct { Args []interface{} Result []interface{} }
Recorded method call
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder for recording mock call
func (*Recorder) CheckThatAllRecordedMethodsHaveBeenCalled ¶
func (r *Recorder) CheckThatAllRecordedMethodsHaveBeenCalled()
Check if every method has been called
func (*Recorder) Shift ¶
func (r *Recorder) Shift(name string) (*ApiMethodCall, error)
Get the next recorded call
func (*Recorder) VerifyCall ¶
func (r *Recorder) VerifyCall(name string, args ...interface{}) *ApiMethodCall
Verify given arguments against recorded arguments
Click to show internal directories.
Click to hide internal directories.