MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / SameElements

Function SameElements

pkg/util/test/elements.go:211–213  ·  view source on GitHub ↗

SameElements returns true iff IsSubsetOfElements(eq, xs, ys) returns true and IsSubsetOfElements(eq, ys, xs) returns true and false otherwise.

(eq any, xs, ys any)

Source from the content-addressed store, hash-verified

209
210// SameElements returns true iff IsSubsetOfElements(eq, xs, ys) returns true and IsSubsetOfElements(eq, ys, xs) returns true and false otherwise.
211func SameElements(eq any, xs, ys any) bool {
212 return IsSubsetOfElements(eq, xs, ys) && IsSubsetOfElements(eq, ys, xs)
213}

Callers 3

TestSetRelationsFunction · 0.85

Calls 1

IsSubsetOfElementsFunction · 0.85

Tested by 1

TestSetRelationsFunction · 0.68