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

Function testContainEval

util/util_test.go:125–131  ·  view source on GitHub ↗
(t *testing.T, s string, res bool)

Source from the content-addressed store, hash-verified

123}
124
125func testContainEval(t *testing.T, s string, res bool) {
126 t.Helper()
127 myRes := HasEval(s)
128 if myRes != res {
129 t.Errorf("%s: %t, supposed to be %t", s, myRes, res)
130 }
131}
132func TestContainEval(t *testing.T) {
133 testContainEval(t, "eval() && a && b && c", true)
134 testContainEval(t, "eval) && a && b && c", false)

Callers 1

TestContainEvalFunction · 0.85

Calls 1

HasEvalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…