(t *testing.T)
| 117 | } |
| 118 | |
| 119 | func TestBasicPolicyEngine_GetPolicy_NotFound(t *testing.T) { |
| 120 | engine := NewBasicPolicyEngine(nil, &mockAuditLog{}) |
| 121 | |
| 122 | _, err := engine.GetPolicy("nonexistent") |
| 123 | if err == nil { |
| 124 | t.Error("expected error for nonexistent policy, got nil") |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | func TestBasicPolicyEngine_ListPolicies(t *testing.T) { |
| 129 | engine := NewBasicPolicyEngine(nil, &mockAuditLog{}) |
nothing calls this directly
no test coverage detected