| 1528 | } |
| 1529 | |
| 1530 | func Test_Mock_AssertExpectations_Placeholder(t *testing.T) { |
| 1531 | t.Parallel() |
| 1532 | |
| 1533 | var mockedService = new(TestExampleImplementation) |
| 1534 | |
| 1535 | mockedService.On("Test_Mock_AssertExpectations_Placeholder", 1, 2, 3).Return(5, 6, 7).Once() |
| 1536 | mockedService.On("Test_Mock_AssertExpectations_Placeholder", 3, 2, 1).Return(7, 6, 5) |
| 1537 | |
| 1538 | tt := new(testing.T) |
| 1539 | assert.False(t, mockedService.AssertExpectations(tt)) |
| 1540 | |
| 1541 | // make the call now |
| 1542 | mockedService.Called(1, 2, 3) |
| 1543 | |
| 1544 | // now assert expectations |
| 1545 | assert.False(t, mockedService.AssertExpectations(tt)) |
| 1546 | |
| 1547 | // make call to the second expectation |
| 1548 | mockedService.Called(3, 2, 1) |
| 1549 | |
| 1550 | // now assert expectations again |
| 1551 | assert.True(t, mockedService.AssertExpectations(tt)) |
| 1552 | } |
| 1553 | |
| 1554 | func Test_Mock_AssertExpectations_With_Pointers(t *testing.T) { |
| 1555 | t.Parallel() |