Foo provides a mock function for the type MockFooer
(f func(x string) string)
| 214 | |
| 215 | // Foo provides a mock function for the type MockFooer |
| 216 | func (_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' |
| 233 | type MockFooer_Foo_Call struct { |