MCPcopy
hub / github.com/stretchr/testify / Test_Mock_AssertExpectations_Placeholder_NoArgs

Function Test_Mock_AssertExpectations_Placeholder_NoArgs

mock/mock_test.go:1511–1528  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1509}
1510
1511func 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
1530func Test_Mock_AssertExpectations_Placeholder(t *testing.T) {
1531 t.Parallel()

Callers

nothing calls this directly

Calls 7

FalseFunction · 0.92
TrueFunction · 0.92
OnceMethod · 0.80
ReturnMethod · 0.80
CalledMethod · 0.80
AssertExpectationsMethod · 0.65
OnMethod · 0.45

Tested by

no test coverage detected