(b *testing.B)
| 121 | } |
| 122 | |
| 123 | func BenchmarkBuildRoleLinksWithPatternLarge(b *testing.B) { |
| 124 | e, _ := NewEnforcer("examples/performance/rbac_with_pattern_large_scale_model.conf", "examples/performance/rbac_with_pattern_large_scale_policy.csv") |
| 125 | e.AddNamedMatchingFunc("g", "", util.KeyMatch4) |
| 126 | b.ResetTimer() |
| 127 | for i := 0; i < b.N; i++ { |
| 128 | _ = e.BuildRoleLinks() |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | func BenchmarkBuildRoleLinksWithDomainPatternLarge(b *testing.B) { |
| 133 | e, _ := NewEnforcer("examples/performance/rbac_with_pattern_large_scale_model.conf", "examples/performance/rbac_with_pattern_large_scale_policy.csv") |
nothing calls this directly
no test coverage detected
searching dependent graphs…