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

Function TestContainEval

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

Source from the content-addressed store, hash-verified

130 }
131}
132func TestContainEval(t *testing.T) {
133 testContainEval(t, "eval() && a && b && c", true)
134 testContainEval(t, "eval) && a && b && c", false)
135 testContainEval(t, "eval)( && a && b && c", false)
136 testContainEval(t, "eval(c * (a + b)) && a && b && c", true)
137 testContainEval(t, "xeval() && a && b && c", false)
138}
139
140func testReplaceEval(t *testing.T, s string, rule string, res string) {
141 t.Helper()

Callers

nothing calls this directly

Calls 1

testContainEvalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…