(b *testing.B)
| 47 | } |
| 48 | |
| 49 | func BenchmarkRBACModel(b *testing.B) { |
| 50 | e, _ := NewEnforcer("examples/rbac_model.conf", "examples/rbac_policy.csv") |
| 51 | |
| 52 | b.ResetTimer() |
| 53 | for i := 0; i < b.N; i++ { |
| 54 | _, _ = e.Enforce("alice", "data2", "read") |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | func BenchmarkRBACModelSizes(b *testing.B) { |
| 59 | cases := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…