(t *testing.T)
| 712 | } |
| 713 | |
| 714 | func Test_Mock_Unset_WithFuncPanics(t *testing.T) { |
| 715 | t.Parallel() |
| 716 | |
| 717 | // make a test impl object |
| 718 | var mockedService = new(TestExampleImplementation) |
| 719 | mock1 := mockedService.On("TheExampleMethod", 1) |
| 720 | mock1.Arguments = append(mock1.Arguments, func(string) error { return nil }) |
| 721 | |
| 722 | assert.Panics(t, func() { |
| 723 | mock1.Unset() |
| 724 | }) |
| 725 | } |
| 726 | |
| 727 | func Test_Mock_Return(t *testing.T) { |
| 728 | t.Parallel() |