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

Function TestBatchEnforce

enforcer_test.go:506–510  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

504}
505
506func TestBatchEnforce(t *testing.T) {
507 e, _ := NewEnforcer("examples/basic_model.conf", "examples/basic_policy.csv")
508 results := []bool{true, true, false}
509 testBatchEnforce(t, e, [][]interface{}{{"alice", "data1", "read"}, {"bob", "data2", "write"}, {"jack", "data3", "read"}}, results)
510}
511
512func TestSubjectPriority(t *testing.T) {
513 e, _ := NewEnforcer("examples/subject_priority_model.conf", "examples/subject_priority_policy.csv")

Callers

nothing calls this directly

Calls 2

NewEnforcerFunction · 0.85
testBatchEnforceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…