Documentation
¶
Index ¶
- Variables
- func Called(t require.TestingT, mockFn interface{}, msgAndArgs ...interface{})
- func CalledN(t require.TestingT, mockFn interface{}, n int, msgAndArgs ...interface{})
- func CalledNWith(t require.TestingT, mockFn interface{}, n int, asserter CallInstanceAsserter, ...)
- func CalledOnce(t require.TestingT, mockFn interface{}, msgAndArgs ...interface{})
- func CalledOnceWith(t require.TestingT, mockFn interface{}, asserter CallInstanceAsserter, ...)
- func CalledWith(t require.TestingT, mockFn interface{}, asserter CallInstanceAsserter, ...)
- func NotCalled(t require.TestingT, mockFn interface{}, msgAndArgs ...interface{})
- func NotCalledWith(t require.TestingT, mockFn interface{}, asserter CallInstanceAsserter, ...)
- type CallInstanceAsserter
- type CallInstanceAsserterFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var Skip = mockassert.Skip
View Source
var Values = mockassert.Values
Functions ¶
func CalledNWith ¶
func CalledNWith(t require.TestingT, mockFn interface{}, n int, asserter CallInstanceAsserter, msgAndArgs ...interface{})
CalledNWith asserts that the mock function object was called exactly n times with a set of arguments matching the given mockassertion function.
func CalledOnce ¶
CalledOnce asserts that the mock function object was called exactly once.
func CalledOnceWith ¶
func CalledOnceWith(t require.TestingT, mockFn interface{}, asserter CallInstanceAsserter, msgAndArgs ...interface{})
CalledOnceWith asserts that the mock function object was called exactly once with a set of arguments matching the given mockassertion function.
func CalledWith ¶
func CalledWith(t require.TestingT, mockFn interface{}, asserter CallInstanceAsserter, msgAndArgs ...interface{})
CalledWith asserts that the mock function object was called at least once with a set of arguments matching the given mockassertion function.
func NotCalledWith ¶
func NotCalledWith(t require.TestingT, mockFn interface{}, asserter CallInstanceAsserter, msgAndArgs ...interface{})
CalledWith asserts that the mock function object was not called with a set of arguments matching the given mockassertion function.
Types ¶
type CallInstanceAsserter ¶
type CallInstanceAsserter = mockassert.CallInstanceAsserter
type CallInstanceAsserterFunc ¶
type CallInstanceAsserterFunc = mockassert.CallInstanceAsserterFunc
Click to show internal directories.
Click to hide internal directories.