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

Function NotElementsMatch

require/require.go:1486–1494  ·  view source on GitHub ↗

NotElementsMatch asserts that the specified listA(array, slice...) is NOT 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 not match. This is an inverse of ElementsMatch. req

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

Source from the content-addressed store, hash-verified

1484//
1485// require.NotElementsMatch(t, [1, 2, 3], [1, 2, 4]) -> true
1486func NotElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{}) {
1487 if h, ok := t.(tHelper); ok {
1488 h.Helper()
1489 }
1490 if assert.NotElementsMatch(t, listA, listB, msgAndArgs...) {
1491 return
1492 }
1493 t.FailNow()
1494}
1495
1496// NotElementsMatchf asserts that the specified listA(array, slice...) is NOT equal to specified
1497// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,

Callers 1

NotElementsMatchMethod · 0.70

Calls 3

NotElementsMatchFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected