MCPcopy
hub / github.com/vektra/mockery / Foo

Method Foo

internal/fixtures/mocks_testify_test_test.go:216–230  ·  view source on GitHub ↗

Foo provides a mock function for the type MockFooer

(f func(x string) string)

Source from the content-addressed store, hash-verified

214
215// Foo provides a mock function for the type MockFooer
216func (_mock *MockFooer) Foo(f func(x string) string) error {
217 ret := _mock.Called(f)
218
219 if len(ret) == 0 {
220 panic("no return value specified for Foo")
221 }
222
223 var r0 error
224 if returnFunc, ok := ret.Get(0).(func(func(x string) string) error); ok {
225 r0 = returnFunc(f)
226 } else {
227 r0 = ret.Error(0)
228 }
229 return r0
230}
231
232// MockFooer_Foo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Foo'
233type MockFooer_Foo_Call struct {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected