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

Method TheExampleMethodFunc

mock/mock_test.go:103–106  ·  view source on GitHub ↗
(fn func(string) error)

Source from the content-addressed store, hash-verified

101}
102
103func (i *TestExampleImplementation) TheExampleMethodFunc(fn func(string) error) error {
104 args := i.Called(fn)
105 return args.Error(0)
106}
107
108func (i *TestExampleImplementation) TheExampleMethodVariadic(a ...int) error {
109 args := i.Called(a)

Callers 2

Test_Mock_On_WithFuncArgFunction · 0.80

Calls 2

CalledMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected