package
1.7.0-rc.1
Repository: https://github.com/golang/mock.git
Documentation: pkg.go.dev

# Functions

All returns a composite Matcher that returns true if and only all of the matchers return true.
Any returns a matcher that always matches.
AssignableToTypeOf is a Matcher that matches if the parameter to the mock function is assignable to the type of the parameter to this function.
Eq returns a matcher that matches on equality.
GotFormatterAdapter attaches a GotFormatter to a Matcher.
InAnyOrder is a Matcher that returns true for collections of the same elements ignoring the order.
InOrder declares that the given calls should occur in order.
Len returns a matcher that matches on length.
NewController returns a new Controller.
Nil returns a matcher that matches if the received value is nil.
Not reverses the results of its given child matcher.
WantFormatter modifies the given Matcher's String() method to the given Stringer.
WithContext returns a new Controller and a Context, which is cancelled on any fatal failure.

# Structs

Call represents an expected call to a mock.
A Controller represents the top-level control of a mock ecosystem.

# Interfaces

GotFormatter is used to better print failure messages.
A Matcher is a representation of a class of values.
TestHelper is a TestReporter that has the Helper method.
A TestReporter is something that can be used to report test failures.

# Type aliases

GotFormatterFunc type is an adapter to allow the use of ordinary functions as a GotFormatter.
StringerFunc type is an adapter to allow the use of ordinary functions as a Stringer.