(b *testing.B)
| 126 | } |
| 127 | |
| 128 | func BenchmarkCachedRBACModelWithResourceRoles(b *testing.B) { |
| 129 | e, _ := NewCachedEnforcer("examples/rbac_with_resource_roles_model.conf", "examples/rbac_with_resource_roles_policy.csv") |
| 130 | |
| 131 | b.ResetTimer() |
| 132 | for i := 0; i < b.N; i++ { |
| 133 | _, _ = e.Enforce("alice", "data1", "read") |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | func BenchmarkCachedRBACModelWithDomains(b *testing.B) { |
| 138 | e, _ := NewCachedEnforcer("examples/rbac_with_domains_model.conf", "examples/rbac_with_domains_policy.csv") |
nothing calls this directly
no test coverage detected
searching dependent graphs…