(t *testing.T)
| 1839 | } |
| 1840 | |
| 1841 | func TestIsArgsEqual(t *testing.T) { |
| 1842 | t.Parallel() |
| 1843 | |
| 1844 | var expected = Arguments{5, 3, 4, 6, 7, 2} |
| 1845 | |
| 1846 | // Copy elements 1 to 5 |
| 1847 | args := append(([]interface{})(nil), expected[1:]...) |
| 1848 | args[2] = expected[1] |
| 1849 | assert.False(t, isArgsEqual(expected, args)) |
| 1850 | |
| 1851 | // Clone |
| 1852 | arr := append(([]interface{})(nil), expected...) |
| 1853 | assert.True(t, isArgsEqual(expected, arr)) |
| 1854 | } |
| 1855 | |
| 1856 | func Test_Mock_AssertOptional(t *testing.T) { |
| 1857 | t.Parallel() |
nothing calls this directly
no test coverage detected