MCPcopy
hub / github.com/stretchr/testify / TheExampleMethodFunc

Method TheExampleMethodFunc

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

Source from the content-addressed store, hash-verified

102}
103
104func (i *TestExampleImplementation) TheExampleMethodFunc(fn func(string) error) error {
105 args := i.Called(fn)
106 return args.Error(0)
107}
108
109func (i *TestExampleImplementation) TheExampleMethodVariadic(a ...int) error {
110 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