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

Method ElementsMatchf

require/require_forward.go:89–94  ·  view source on GitHub ↗

ElementsMatchf 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. a.ElementsMatchf([1, 3, 2, 3], [1, 3, 3, 2], "erro

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

Source from the content-addressed store, hash-verified

87//
88// a.ElementsMatchf([1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted")
89func (a *Assertions) ElementsMatchf(listA interface{}, listB interface{}, msg string, args ...interface{}) {
90 if h, ok := a.t.(tHelper); ok {
91 h.Helper()
92 }
93 ElementsMatchf(a.t, listA, listB, msg, args...)
94}
95
96// Empty asserts that the given value is "empty".
97//

Callers

nothing calls this directly

Calls 2

ElementsMatchfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected