(t *testing.T)
| 630 | } |
| 631 | |
| 632 | func TestBlockQuerierDelete(t *testing.T) { |
| 633 | stones := tombstones.NewTestMemTombstones([]tombstones.Intervals{ |
| 634 | {{Mint: 1, Maxt: 3}}, |
| 635 | {{Mint: 1, Maxt: 3}, {Mint: 6, Maxt: 10}}, |
| 636 | {{Mint: 6, Maxt: 10}}, |
| 637 | }) |
| 638 | |
| 639 | for _, c := range []blockQuerierTestCase{ |
| 640 | { |
| 641 | mint: 0, |
| 642 | maxt: 0, |
| 643 | ms: []*labels.Matcher{}, |
| 644 | exp: newMockSeriesSet([]storage.Series{}), |
| 645 | expChks: newMockChunkSeriesSet([]storage.ChunkSeries{}), |
| 646 | }, |
| 647 | { |
| 648 | mint: 0, |
| 649 | maxt: 0, |
| 650 | ms: []*labels.Matcher{labels.MustNewMatcher(labels.MatchEqual, "a", "a")}, |
| 651 | exp: newMockSeriesSet([]storage.Series{}), |
| 652 | expChks: newMockChunkSeriesSet([]storage.ChunkSeries{}), |
| 653 | }, |
| 654 | { |
| 655 | mint: 1, |
| 656 | maxt: 0, |
| 657 | ms: []*labels.Matcher{labels.MustNewMatcher(labels.MatchEqual, "a", "a")}, |
| 658 | exp: newMockSeriesSet([]storage.Series{}), |
| 659 | expChks: newMockChunkSeriesSet([]storage.ChunkSeries{}), |
| 660 | }, |
| 661 | { |
| 662 | mint: math.MinInt64, |
| 663 | maxt: math.MaxInt64, |
| 664 | ms: []*labels.Matcher{labels.MustNewMatcher(labels.MatchEqual, "a", "x")}, |
| 665 | exp: newMockSeriesSet([]storage.Series{}), |
| 666 | expChks: newMockChunkSeriesSet([]storage.ChunkSeries{}), |
| 667 | }, |
| 668 | { |
| 669 | mint: math.MinInt64, |
| 670 | maxt: math.MaxInt64, |
| 671 | ms: []*labels.Matcher{labels.MustNewMatcher(labels.MatchRegexp, "a", ".*")}, |
| 672 | exp: newMockSeriesSet([]storage.Series{ |
| 673 | storage.NewListSeries(labels.FromStrings("a", "a"), |
| 674 | []chunks.Sample{sample{0, 5, 2, nil, nil}, sample{0, 6, 3, nil, nil}, sample{0, 7, 4, nil, nil}}, |
| 675 | ), |
| 676 | storage.NewListSeries(labels.FromStrings("a", "a", "b", "b"), |
| 677 | []chunks.Sample{sample{0, 5, 3, nil, nil}}, |
| 678 | ), |
| 679 | storage.NewListSeries(labels.FromStrings("b", "b"), |
| 680 | []chunks.Sample{sample{0, 1, 3, nil, nil}, sample{0, 2, 2, nil, nil}, sample{0, 3, 6, nil, nil}, sample{0, 5, 1, nil, nil}}, |
| 681 | ), |
| 682 | }), |
| 683 | expChks: newMockChunkSeriesSet([]storage.ChunkSeries{ |
| 684 | storage.NewListChunkSeriesFromSamples(labels.FromStrings("a", "a"), |
| 685 | []chunks.Sample{sample{0, 5, 2, nil, nil}, sample{0, 6, 3, nil, nil}, sample{0, 7, 4, nil, nil}}, |
| 686 | ), |
| 687 | storage.NewListChunkSeriesFromSamples(labels.FromStrings("a", "a", "b", "b"), |
| 688 | []chunks.Sample{sample{0, 5, 3, nil, nil}}, |
| 689 | ), |
nothing calls this directly
no test coverage detected
searching dependent graphs…