MCPcopy
hub / github.com/apache/casbin / testArray2DEquals

Function testArray2DEquals

util/util_test.go:90–98  ·  view source on GitHub ↗
(t *testing.T, a [][]string, b [][]string, res bool)

Source from the content-addressed store, hash-verified

88}
89
90func testArray2DEquals(t *testing.T, a [][]string, b [][]string, res bool) {
91 t.Helper()
92 myRes := Array2DEquals(a, b)
93 t.Logf("%s == %s: %t", a, b, myRes)
94
95 if myRes != res {
96 t.Errorf("%s == %s: %t, supposed to be %t", a, b, myRes, res)
97 }
98}
99
100func TestArray2DEquals(t *testing.T) {
101 testArray2DEquals(t, [][]string{{"a", "b", "c"}, {"1", "2", "3"}}, [][]string{{"a", "b", "c"}, {"1", "2", "3"}}, true)

Callers 1

TestArray2DEqualsFunction · 0.85

Calls 1

Array2DEqualsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…