MCPcopy
hub / github.com/prometheus/prometheus / newMockSeriesSet

Function newMockSeriesSet

tsdb/querier_test.go:59–72  ·  view source on GitHub ↗
(list []storage.Series)

Source from the content-addressed store, hash-verified

57func (m *mockSeriesSet) Warnings() annotations.Annotations { return m.ws() }
58
59func newMockSeriesSet(list []storage.Series) *mockSeriesSet {
60 i := -1
61 return &mockSeriesSet{
62 next: func() bool {
63 i++
64 return i < len(list)
65 },
66 series: func() storage.Series {
67 return list[i]
68 },
69 err: func() error { return nil },
70 ws: func() annotations.Annotations { return nil },
71 }
72}
73
74type mockChunkSeriesSet struct {
75 next func() bool

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…