Documentation ¶
Overview ¶
Package mockrt provides mock runtime for mockgo
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IgnoreContext = cmpopts.IgnoreInterfaces(struct{ context.Context }{})
IgnoreContext is an option to ignore context.Context.
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call struct { Parameter interface{} Result interface{} }
Call defines pair of request and response parameters for a method call.
type Sequence ¶
type Sequence struct {
// contains filtered or unexported fields
}
Sequence is a checker of sequence of method calls
func NewQ ¶
NewQ is an alias for NewSequence, creates a sequence of calls. This is called by test codes.
func NewSequence ¶
NewSequence creates a sequence of calls. This is called by test codes.
func (*Sequence) IsEnd ¶
func (s *Sequence) IsEnd()
IsEnd checks sequence has end or not. This is called by test code.
Click to show internal directories.
Click to hide internal directories.