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

Function TestImplicitPermissionAPIWithDomain

rbac_api_test.go:391–394  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

389}
390
391func 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
396func testGetImplicitUsers(t *testing.T, e *Enforcer, res []string, permission ...string) {
397 t.Helper()

Callers

nothing calls this directly

Calls 2

NewEnforcerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…