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

Function NotElementsMatchf

require/require.go:1506–1514  ·  view source on GitHub ↗

NotElementsMatchf 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. re

(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1504//
1505// require.NotElementsMatchf(t, [1, 2, 3], [1, 2, 4], "error message %s", "formatted") -> true
1506func NotElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{}) {
1507 if h, ok := t.(tHelper); ok {
1508 h.Helper()
1509 }
1510 if assert.NotElementsMatchf(t, listA, listB, msg, args...) {
1511 return
1512 }
1513 t.FailNow()
1514}
1515
1516// NotEmpty asserts that the specified object is NOT [Empty].
1517//

Callers 1

NotElementsMatchfMethod · 0.70

Calls 3

NotElementsMatchfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected