MCPcopy Create free account
hub / github.com/corestoreio/pkg / ElementsMatch

Function ElementsMatch

util/assert/assertions.go:904–952  ·  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, listB interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

isEmptyFunction · 0.85
FailFunction · 0.85
ObjectsAreEqualFunction · 0.85
HelperMethod · 0.80
LenMethod · 0.65
IndexMethod · 0.65

Tested by

no test coverage detected