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

Function Test_Mock_AssertNotCalled

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

Source from the content-addressed store, hash-verified

1805}
1806
1807func Test_Mock_AssertNotCalled(t *testing.T) {
1808 t.Parallel()
1809
1810 var mockedService = new(TestExampleImplementation)
1811
1812 mockedService.On("Test_Mock_AssertNotCalled", 1, 2, 3).Return(5, 6, 7)
1813
1814 mockedService.Called(1, 2, 3)
1815
1816 assert.True(t, mockedService.AssertNotCalled(t, "Test_Mock_NotCalled"))
1817
1818}
1819
1820func Test_Mock_IsMethodCallable(t *testing.T) {
1821 t.Parallel()

Callers

nothing calls this directly

Calls 5

TrueFunction · 0.92
ReturnMethod · 0.80
CalledMethod · 0.80
AssertNotCalledMethod · 0.80
OnMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…