MCPcopy Create free account
hub / github.com/stretchr/testify / TheExampleMethodFuncType

Method TheExampleMethodFuncType

mock/mock_test.go:125–128  ·  view source on GitHub ↗
(fn ExampleFuncType)

Source from the content-addressed store, hash-verified

123type ExampleFuncType func(string) error
124
125func (i *TestExampleImplementation) TheExampleMethodFuncType(fn ExampleFuncType) error {
126 args := i.Called(fn)
127 return args.Error(0)
128}
129
130// MockTestingT mocks a test struct
131type MockTestingT struct {

Callers 2

Test_Mock_UnsetFunction · 0.80

Calls 2

CalledMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected