(t *testing.T)
| 422 | } |
| 423 | |
| 424 | func Test_Mock_On_WithSliceArgMatcher(t *testing.T) { |
| 425 | t.Parallel() |
| 426 | |
| 427 | var mockedService TestExampleImplementation |
| 428 | |
| 429 | mockedService.On("TheExampleMethod7", |
| 430 | MatchedBy(func(slice []bool) bool { return slice == nil }), |
| 431 | ).Return(errors.New("fixture1")) |
| 432 | |
| 433 | assert.EqualError(t, mockedService.TheExampleMethod7(nil), "fixture1") |
| 434 | } |
| 435 | |
| 436 | func Test_Mock_On_WithVariadicFunc(t *testing.T) { |
| 437 | t.Parallel() |
nothing calls this directly
no test coverage detected