MCPcopy Index your code
hub / github.com/expr-lang/expr / ElementsMatch

Function ElementsMatch

internal/testify/require/require.go:96–104  ·  view source on GitHub ↗

ElementsMatch asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, the number of appearances of each of them in both lists should match. assert.ElementsMatch(t, [1, 3, 2, 3], [1, 3, 3, 2])

(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

94//
95// assert.ElementsMatch(t, [1, 3, 2, 3], [1, 3, 3, 2])
96func ElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{}) {
97 if h, ok := t.(tHelper); ok {
98 h.Helper()
99 }
100 if assert.ElementsMatch(t, listA, listB, msgAndArgs...) {
101 return
102 }
103 t.FailNow()
104}
105
106// ElementsMatchf asserts that the specified listA(array, slice...) is equal to specified
107// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,

Callers 1

ElementsMatchMethod · 0.70

Calls 3

ElementsMatchFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…