(b *testing.B)
| 281 | } |
| 282 | |
| 283 | func BenchmarkRBACModelWithDomainPatternLarge(b *testing.B) { |
| 284 | e, _ := NewEnforcer("examples/performance/rbac_with_pattern_large_scale_model.conf", "examples/performance/rbac_with_pattern_large_scale_policy.csv") |
| 285 | e.AddNamedDomainMatchingFunc("g", "", util.KeyMatch4) |
| 286 | _ = e.BuildRoleLinks() |
| 287 | b.ResetTimer() |
| 288 | for i := 0; i < b.N; i++ { |
| 289 | _, _ = e.Enforce("staffUser1001", "/orgs/1/sites/site001", "App001.Module001.Action1001") |
| 290 | } |
| 291 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…