(t *testing.T)
| 504 | } |
| 505 | |
| 506 | func 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 | |
| 512 | func TestSubjectPriority(t *testing.T) { |
| 513 | e, _ := NewEnforcer("examples/subject_priority_model.conf", "examples/subject_priority_policy.csv") |
nothing calls this directly
no test coverage detected
searching dependent graphs…