(t *testing.T)
| 410 | } |
| 411 | |
| 412 | func Test_Mock_On_WithMapArgMatcher(t *testing.T) { |
| 413 | t.Parallel() |
| 414 | |
| 415 | var mockedService TestExampleImplementation |
| 416 | |
| 417 | mockedService.On("TheExampleMethod6", |
| 418 | MatchedBy(func(m map[string]bool) bool { return m == nil }), |
| 419 | ).Return(errors.New("fixture1")) |
| 420 | |
| 421 | assert.EqualError(t, mockedService.TheExampleMethod6(nil), "fixture1") |
| 422 | } |
| 423 | |
| 424 | func Test_Mock_On_WithSliceArgMatcher(t *testing.T) { |
| 425 | t.Parallel() |
nothing calls this directly
no test coverage detected