MCPcopy Index your code
hub / github.com/apache/casbin / TestArrayEquals

Function TestArrayEquals

util/util_test.go:83–88  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

81}
82
83func TestArrayEquals(t *testing.T) {
84 testArrayEquals(t, []string{"a", "b", "c"}, []string{"a", "b", "c"}, true)
85 testArrayEquals(t, []string{"a", "b", "c"}, []string{"a", "b"}, false)
86 testArrayEquals(t, []string{"a", "b", "c"}, []string{"a", "c", "b"}, false)
87 testArrayEquals(t, []string{"a", "b", "c"}, []string{}, false)
88}
89
90func testArray2DEquals(t *testing.T, a [][]string, b [][]string, res bool) {
91 t.Helper()

Callers

nothing calls this directly

Calls 1

testArrayEqualsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…