(t *testing.T)
| 1421 | } |
| 1422 | |
| 1423 | func Test_Mock_Called_For_SetTime_Expectation(t *testing.T) { |
| 1424 | t.Parallel() |
| 1425 | |
| 1426 | var mockedService = new(TestExampleImplementation) |
| 1427 | |
| 1428 | mockedService.On("TheExampleMethod", 1, 2, 3).Return(5, "6", true).Times(4) |
| 1429 | |
| 1430 | mockedService.TheExampleMethod(1, 2, 3) |
| 1431 | mockedService.TheExampleMethod(1, 2, 3) |
| 1432 | mockedService.TheExampleMethod(1, 2, 3) |
| 1433 | mockedService.TheExampleMethod(1, 2, 3) |
| 1434 | assert.Panics(t, func() { |
| 1435 | mockedService.TheExampleMethod(1, 2, 3) |
| 1436 | }) |
| 1437 | |
| 1438 | } |
| 1439 | |
| 1440 | func Test_Mock_Called_Unexpected(t *testing.T) { |
| 1441 | t.Parallel() |
nothing calls this directly
no test coverage detected