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

Function newTestResource

abac_test.go:30–35  ·  view source on GitHub ↗
(name string, owner string)

Source from the content-addressed store, hash-verified

28}
29
30func newTestResource(name string, owner string) testResource {
31 r := testResource{}
32 r.Name = name
33 r.Owner = owner
34 return r
35}
36
37func TestABACModel(t *testing.T) {
38 e, _ := NewEnforcer("examples/abac_model.conf")

Callers 4

BenchmarkABACModelFunction · 0.85
BenchmarkCachedABACModelFunction · 0.85
TestABACModelFunction · 0.85
TestABACNotUsingPolicyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…