(b *testing.B)
| 135 | } |
| 136 | |
| 137 | func BenchmarkCachedRBACModelWithDomains(b *testing.B) { |
| 138 | e, _ := NewCachedEnforcer("examples/rbac_with_domains_model.conf", "examples/rbac_with_domains_policy.csv") |
| 139 | |
| 140 | b.ResetTimer() |
| 141 | for i := 0; i < b.N; i++ { |
| 142 | _, _ = e.Enforce("alice", "domain1", "data1", "read") |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | func BenchmarkCachedABACModel(b *testing.B) { |
| 147 | e, _ := NewCachedEnforcer("examples/abac_model.conf") |
nothing calls this directly
no test coverage detected
searching dependent graphs…