(t *testing.T)
| 1818 | } |
| 1819 | |
| 1820 | func Test_Mock_IsMethodCallable(t *testing.T) { |
| 1821 | t.Parallel() |
| 1822 | |
| 1823 | var mockedService = new(TestExampleImplementation) |
| 1824 | |
| 1825 | arg := []Call{{Repeatability: 1}, {Repeatability: 2}} |
| 1826 | arg2 := []Call{{Repeatability: 1}, {Repeatability: 1}} |
| 1827 | arg3 := []Call{{Repeatability: 1}, {Repeatability: 1}} |
| 1828 | |
| 1829 | mockedService.On("Test_Mock_IsMethodCallable", arg2).Return(true).Twice() |
| 1830 | |
| 1831 | assert.False(t, mockedService.IsMethodCallable(t, "Test_Mock_IsMethodCallable", arg)) |
| 1832 | assert.True(t, mockedService.IsMethodCallable(t, "Test_Mock_IsMethodCallable", arg2)) |
| 1833 | assert.True(t, mockedService.IsMethodCallable(t, "Test_Mock_IsMethodCallable", arg3)) |
| 1834 | |
| 1835 | mockedService.MethodCalled("Test_Mock_IsMethodCallable", arg2) |
| 1836 | mockedService.MethodCalled("Test_Mock_IsMethodCallable", arg2) |
| 1837 | |
| 1838 | assert.False(t, mockedService.IsMethodCallable(t, "Test_Mock_IsMethodCallable", arg2)) |
| 1839 | } |
| 1840 | |
| 1841 | func TestIsArgsEqual(t *testing.T) { |
| 1842 | t.Parallel() |
nothing calls this directly
no test coverage detected