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

Function testGetEvalValue

util/util_test.go:153–160  ·  view source on GitHub ↗
(t *testing.T, s string, res []string)

Source from the content-addressed store, hash-verified

151}
152
153func testGetEvalValue(t *testing.T, s string, res []string) {
154 t.Helper()
155 myRes := GetEvalValue(s)
156
157 if !ArrayEquals(myRes, res) {
158 t.Errorf("%s: %s supposed to be %s", s, myRes, res)
159 }
160}
161
162func TestGetEvalValue(t *testing.T) {
163 testGetEvalValue(t, "eval(a) && a && b && c", []string{"a"})

Callers 1

TestGetEvalValueFunction · 0.85

Calls 2

GetEvalValueFunction · 0.85
ArrayEqualsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…