(t *testing.T)
| 386 | } |
| 387 | |
| 388 | func Test_Mock_On_WithInterfaceArgMatcher(t *testing.T) { |
| 389 | t.Parallel() |
| 390 | |
| 391 | var mockedService TestExampleImplementation |
| 392 | |
| 393 | mockedService.On("TheExampleMethod4", |
| 394 | MatchedBy(func(a ExampleInterface) bool { return a == nil }), |
| 395 | ).Return(errors.New("fixture1")) |
| 396 | |
| 397 | assert.EqualError(t, mockedService.TheExampleMethod4(nil), "fixture1") |
| 398 | } |
| 399 | |
| 400 | func Test_Mock_On_WithChannelArgMatcher(t *testing.T) { |
| 401 | t.Parallel() |
nothing calls this directly
no test coverage detected