MCPcopy
hub / github.com/apache/casbin / TestKeyMatchWithRBACInDomain

Function TestKeyMatchWithRBACInDomain

enforcer_test.go:87–90  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

85}
86
87func TestKeyMatchWithRBACInDomain(t *testing.T) {
88 e, _ := NewEnforcer("examples/keymatch_with_rbac_in_domain.conf", "examples/keymatch_with_rbac_in_domain.csv")
89 testDomainEnforce(t, e, "Username==test2", "engines/engine1", "*", "attach", true)
90}
91
92func TestKeyMatchModelInMemoryDeny(t *testing.T) {
93 m := model.NewModel()

Callers

nothing calls this directly

Calls 2

NewEnforcerFunction · 0.85
testDomainEnforceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…