AssertNotCalled asserts that the method was not called. It can produce a false result when an argument is a pointer type and the underlying value changed after calling the mocked method.
mockedService.Called(1, 2, 3) assert.True(t, mockedService.AssertNotCalled(t, "Test_Mock_NotCalled")) }
AssertNotCalled is referenced in 18 repositoriesgithub.com/stretchr/testify
- 1 reference in mock/mock_test.go