(t *testing.T)
| 389 | } |
| 390 | |
| 391 | func TestImplicitPermissionAPIWithDomain(t *testing.T) { |
| 392 | e, _ := NewEnforcer("examples/rbac_with_domains_model.conf", "examples/rbac_with_hierarchy_with_domains_policy.csv") |
| 393 | testGetImplicitPermissionsWithDomain(t, e, "alice", "domain1", [][]string{{"alice", "domain1", "data2", "read"}, {"role:reader", "domain1", "data1", "read"}, {"role:writer", "domain1", "data1", "write"}}) |
| 394 | } |
| 395 | |
| 396 | func testGetImplicitUsers(t *testing.T, e *Enforcer, res []string, permission ...string) { |
| 397 | t.Helper() |
nothing calls this directly
no test coverage detected
searching dependent graphs…