(list []storage.Series)
| 57 | func (m *mockSeriesSet) Warnings() annotations.Annotations { return m.ws() } |
| 58 | |
| 59 | func 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 | |
| 74 | type mockChunkSeriesSet struct { |
| 75 | next func() bool |
no outgoing calls
no test coverage detected
searching dependent graphs…