MCPcopy Create free account
hub / github.com/apache/casbin-server / TestRoleDomainAPI

Function TestRoleDomainAPI

server/rbac_api_test.go:255–260  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

253}
254
255func TestRoleDomainAPI(t *testing.T) {
256 e := newTestEngine(t, "file", "../examples/rbac_with_domains_policy.csv", "../examples/rbac_with_domains_model.conf")
257
258 testGetDomains(t, e, "alice", []string{"domain1"})
259 testGetDomains(t, e, "bob", []string{"domain2"})
260}

Callers

nothing calls this directly

Calls 2

newTestEngineFunction · 0.85
testGetDomainsFunction · 0.85

Tested by

no test coverage detected