(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestNewBasicPolicyEngine(t *testing.T) { |
| 10 | engine := NewBasicPolicyEngine(nil, &mockAuditLog{}) |
| 11 | |
| 12 | if engine == nil { |
| 13 | t.Fatal("expected BasicPolicyEngine, got nil") |
| 14 | } |
| 15 | |
| 16 | if engine.config.EnableCaching != true { |
| 17 | t.Error("expected EnableCaching to be true by default") |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | func TestBasicPolicyEngine_AddPolicy(t *testing.T) { |
| 22 | engine := NewBasicPolicyEngine(nil, &mockAuditLog{}) |
nothing calls this directly
no test coverage detected