Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallInstance ¶
type CallInstance interface { Args() []interface{} Results() []interface{} }
CallInstance holds the arguments and results of a single mock function call.
func GetCallHistory ¶
func GetCallHistory(v interface{}) ([]CallInstance, bool)
GetCallHistory extracts the history from the given mock function and returns the set of call instances.
func GetCallHistoryWith ¶
func GetCallHistoryWith(v interface{}, matcher func(v CallInstance) bool) (matching []CallInstance, _ bool)
GetCallHistoryWith extracts the history from the given mock function and returns the set of call instances that match the given function. If the given parameter is not of the required type, a false-valued flag is returned.
Click to show internal directories.
Click to hide internal directories.