(t *testing.T)
| 398 | } |
| 399 | |
| 400 | func Test_Mock_On_WithChannelArgMatcher(t *testing.T) { |
| 401 | t.Parallel() |
| 402 | |
| 403 | var mockedService TestExampleImplementation |
| 404 | |
| 405 | mockedService.On("TheExampleMethod5", |
| 406 | MatchedBy(func(ch chan struct{}) bool { return ch == nil }), |
| 407 | ).Return(errors.New("fixture1")) |
| 408 | |
| 409 | assert.EqualError(t, mockedService.TheExampleMethod5(nil), "fixture1") |
| 410 | } |
| 411 | |
| 412 | func Test_Mock_On_WithMapArgMatcher(t *testing.T) { |
| 413 | t.Parallel() |
nothing calls this directly
no test coverage detected