Versions in this module Expand all Collapse all v1 v1.1.0 Aug 26, 2023 Changes in this version + func NewSpyMockOf(wrapped I) *T type MockMethods + func (mm *MockMethods) Called(arguments ...interface{}) mock.Arguments + func (mm *MockMethods) MethodCalled(methodName string, arguments ...interface{}) (result mock.Arguments) + func (mm *MockMethods) SetSpyOf(wrapped any) + type Spying interface + SetSpyOf func(wrapped any) v1.0.0 Aug 13, 2023 Changes in this version + func As(args mock.Arguments, index int) T + func As1(args mock.Arguments) T1 + func As2(args mock.Arguments) (T1, T2) + func As3(args mock.Arguments) (T1, T2, T3) + func As4(args mock.Arguments) (T1, T2, T3, T4) + func MockGenerate(pkg string) ([]byte, error) + func MockGenerateFile(pkg string, f *os.File) error + func NewMock() *T + func NewMockOf() *T + type MockMethods struct + MockOf any + func (mm *MockMethods) AssertMethodCalled(t *testing.T, method any, arguments ...any) bool + func (mm *MockMethods) AssertMethodNotCalled(t *testing.T, method any, arguments ...any) bool + func (mm *MockMethods) AssertNumberOfMethodCalls(t *testing.T, method any, expectedCalls int) bool + func (mm *MockMethods) OnAllMethods(errs bool) + func (mm *MockMethods) OnMethod(method any, arguments ...any) *mock.Call