(b *testing.B)
| 38 | } |
| 39 | |
| 40 | func BenchmarkBasicModel(b *testing.B) { |
| 41 | e, _ := NewEnforcer("examples/basic_model.conf", "examples/basic_policy.csv") |
| 42 | |
| 43 | b.ResetTimer() |
| 44 | for i := 0; i < b.N; i++ { |
| 45 | _, _ = e.Enforce("alice", "data1", "read") |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func BenchmarkRBACModel(b *testing.B) { |
| 50 | e, _ := NewEnforcer("examples/rbac_model.conf", "examples/rbac_policy.csv") |
nothing calls this directly
no test coverage detected
searching dependent graphs…