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

Function testArrayEquals

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

Source from the content-addressed store, hash-verified

71}
72
73func testArrayEquals(t *testing.T, a []string, b []string, res bool) {
74 t.Helper()
75 myRes := ArrayEquals(a, b)
76 t.Logf("%s == %s: %t", a, b, myRes)
77
78 if myRes != res {
79 t.Errorf("%s == %s: %t, supposed to be %t", a, b, myRes, res)
80 }
81}
82
83func TestArrayEquals(t *testing.T) {
84 testArrayEquals(t, []string{"a", "b", "c"}, []string{"a", "b", "c"}, true)

Callers 1

TestArrayEqualsFunction · 0.85

Calls 1

ArrayEqualsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…