| 1509 | } |
| 1510 | |
| 1511 | func Test_Mock_AssertExpectations_Placeholder_NoArgs(t *testing.T) { |
| 1512 | t.Parallel() |
| 1513 | |
| 1514 | var mockedService = new(TestExampleImplementation) |
| 1515 | |
| 1516 | mockedService.On("Test_Mock_AssertExpectations_Placeholder_NoArgs").Return(5, 6, 7).Once() |
| 1517 | mockedService.On("Test_Mock_AssertExpectations_Placeholder_NoArgs").Return(7, 6, 5) |
| 1518 | |
| 1519 | tt := new(testing.T) |
| 1520 | assert.False(t, mockedService.AssertExpectations(tt)) |
| 1521 | |
| 1522 | // make the call now |
| 1523 | mockedService.Called() |
| 1524 | |
| 1525 | // now assert expectations |
| 1526 | assert.True(t, mockedService.AssertExpectations(tt)) |
| 1527 | |
| 1528 | } |
| 1529 | |
| 1530 | func Test_Mock_AssertExpectations_Placeholder(t *testing.T) { |
| 1531 | t.Parallel() |