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:
parent
e7ea37bcf2
commit
22406158e1
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue