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

Function TestIsArgsEqual

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

Source from the content-addressed store, hash-verified

1839}
1840
1841func 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
1856func Test_Mock_AssertOptional(t *testing.T) {
1857 t.Parallel()

Callers

nothing calls this directly

Calls 3

FalseFunction · 0.92
TrueFunction · 0.92
isArgsEqualFunction · 0.85

Tested by

no test coverage detected