(t *testing.T)
| 527 | } |
| 528 | |
| 529 | func Test_Mock_On_WithFuncPanics(t *testing.T) { |
| 530 | t.Parallel() |
| 531 | |
| 532 | // make a test impl object |
| 533 | var mockedService = new(TestExampleImplementation) |
| 534 | |
| 535 | assert.Panics(t, func() { |
| 536 | mockedService.On("TheExampleMethodFunc", func(string) error { return nil }) |
| 537 | }) |
| 538 | } |
| 539 | |
| 540 | func Test_Mock_On_WithFuncTypeArg(t *testing.T) { |
| 541 | t.Parallel() |