checker: add States() to stubReportCtx for ReportContext v2

The ReportContext interface gained a States() []CheckState accessor;
the test double needs a trivial implementation to satisfy the
interface.
This commit is contained in:
nemunaire 2026-04-24 18:45:54 +07:00
commit 22406158e1

View file

@ -136,6 +136,7 @@ func (s *stubReportCtx) Data() json.RawMessage { return s.data }
func (s *stubReportCtx) Related(_ sdk.ObservationKey) []sdk.RelatedObservation {
return s.related
}
func (s *stubReportCtx) States() []sdk.CheckState { return nil }
func mustJSON(t *testing.T, v any) json.RawMessage {
t.Helper()