(ctx context.Context, client v1.API, selectors string, start time.Time, duration time.Duration)
| 138 | } |
| 139 | |
| 140 | func (tc *simpleTestCase) Test(ctx context.Context, client v1.API, selectors string, start time.Time, duration time.Duration) (bool, error) { |
| 141 | log := spanlogger.FromContext(ctx) |
| 142 | pairs, err := tc.Query(ctx, client, selectors, start, duration) |
| 143 | if err != nil { |
| 144 | level.Info(log).Log("err", err) |
| 145 | return false, err |
| 146 | } |
| 147 | |
| 148 | return verifySamples(spanlogger.FromContext(ctx), tc, pairs, duration, tc.cfg), nil |
| 149 | } |
| 150 | |
| 151 | func (tc *simpleTestCase) MinQueryTime() time.Time { |
| 152 | return calculateMinQueryTime(tc.cfg.durationQuerySince, tc.cfg.timeQueryStart) |
nothing calls this directly
no test coverage detected