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

Function newTestSubject

abac_test.go:155–160  ·  view source on GitHub ↗
(name string, age int)

Source from the content-addressed store, hash-verified

153}
154
155func newTestSubject(name string, age int) testSub {
156 s := testSub{}
157 s.Name = name
158 s.Age = age
159 return s
160}
161
162func TestABACNotUsingPolicy(t *testing.T) {
163 e, _ := NewEnforcer("examples/abac_not_using_policy_model.conf", "examples/abac_rule_effect_policy.csv")

Callers 2

BenchmarkABACRuleModelFunction · 0.85
TestABACPolicyFunction · 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…