(t *testing.T, i *Ingester)
| 5734 | } |
| 5735 | |
| 5736 | func pushSingleSampleWithMetadata(t *testing.T, i *Ingester) { |
| 5737 | ctx := user.InjectOrgID(context.Background(), userID) |
| 5738 | req, _ := mockWriteRequest(t, labels.FromStrings("__name__", "test"), 0, util.TimeToMillis(time.Now())) |
| 5739 | req.Metadata = append(req.Metadata, &cortexpb.MetricMetadata{MetricFamilyName: "test", Help: "a help for metric", Unit: "", Type: cortexpb.COUNTER}) |
| 5740 | _, err := i.Push(ctx, req) |
| 5741 | require.NoError(t, err) |
| 5742 | } |
| 5743 | |
| 5744 | func pushSingleSampleAtTime(t *testing.T, i *Ingester, ts int64) { |
| 5745 | ctx := user.InjectOrgID(context.Background(), userID) |
no test coverage detected