(t *testing.T)
| 129 | } |
| 130 | |
| 131 | func TestInMemoryAuditLog_GetEvent_NotFound(t *testing.T) { |
| 132 | auditLog := NewInMemoryAuditLog(nil) |
| 133 | defer func() { _ = auditLog.Close() }() |
| 134 | |
| 135 | _, err := auditLog.GetEvent("nonexistent") |
| 136 | if err == nil { |
| 137 | t.Error("expected error for nonexistent event, got nil") |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | func TestInMemoryAuditLog_GetEventsByUser(t *testing.T) { |
| 142 | auditLog := NewInMemoryAuditLog(nil) |
nothing calls this directly
no test coverage detected