(b *testing.B)
| 221 | } |
| 222 | |
| 223 | func BenchmarkRBACModelWithDomains(b *testing.B) { |
| 224 | e, _ := NewEnforcer("examples/rbac_with_domains_model.conf", "examples/rbac_with_domains_policy.csv") |
| 225 | |
| 226 | b.ResetTimer() |
| 227 | for i := 0; i < b.N; i++ { |
| 228 | _, _ = e.Enforce("alice", "domain1", "data1", "read") |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | func BenchmarkABACModel(b *testing.B) { |
| 233 | e, _ := NewEnforcer("examples/abac_model.conf") |
nothing calls this directly
no test coverage detected
searching dependent graphs…