(b *testing.B)
| 230 | } |
| 231 | |
| 232 | func BenchmarkABACModel(b *testing.B) { |
| 233 | e, _ := NewEnforcer("examples/abac_model.conf") |
| 234 | data1 := newTestResource("data1", "alice") |
| 235 | |
| 236 | b.ResetTimer() |
| 237 | for i := 0; i < b.N; i++ { |
| 238 | _, _ = e.Enforce("alice", data1, "read") |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | func BenchmarkABACRuleModel(b *testing.B) { |
| 243 | e, _ := NewEnforcer("examples/abac_rule_model.conf") |
nothing calls this directly
no test coverage detected
searching dependent graphs…