(t *testing.T)
| 510 | } |
| 511 | |
| 512 | func TestSubjectPriority(t *testing.T) { |
| 513 | e, _ := NewEnforcer("examples/subject_priority_model.conf", "examples/subject_priority_policy.csv") |
| 514 | testBatchEnforce(t, e, [][]interface{}{ |
| 515 | {"jane", "data1", "read"}, |
| 516 | {"alice", "data1", "read"}, |
| 517 | }, []bool{ |
| 518 | true, true, |
| 519 | }) |
| 520 | } |
| 521 | |
| 522 | func TestSubjectPriorityWithDomain(t *testing.T) { |
| 523 | e, _ := NewEnforcer("examples/subject_priority_model_with_domain.conf", "examples/subject_priority_policy_with_domain.csv") |
nothing calls this directly
no test coverage detected
searching dependent graphs…