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

Function TestGetEvalValue

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

Source from the content-addressed store, hash-verified

160}
161
162func TestGetEvalValue(t *testing.T) {
163 testGetEvalValue(t, "eval(a) && a && b && c", []string{"a"})
164 testGetEvalValue(t, "a && eval(a) && b && c", []string{"a"})
165 testGetEvalValue(t, "eval(a) && eval(b) && a && b && c", []string{"a", "b"})
166 testGetEvalValue(t, "a && eval(a) && eval(b) && b && c", []string{"a", "b"})
167}
168
169func testReplaceEvalWithMap(t *testing.T, s string, sets map[string]string, res string) {
170 t.Helper()

Callers

nothing calls this directly

Calls 1

testGetEvalValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…