MCPcopy
hub / github.com/grafana/tempo / TestRowNumberPreceding

Function TestRowNumberPreceding

pkg/parquetquery/iters_test.go:98–109  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

96}
97
98func TestRowNumberPreceding(t *testing.T) {
99 testCases := []struct {
100 start, preceding RowNumber
101 }{
102 {RowNumber{1000, -1, -1, -1, -1, -1, -1, -1}, RowNumber{999, -1, -1, -1, -1, -1, -1, -1}},
103 {RowNumber{1000, 0, 0, 0, 0, 0, 0, 0}, RowNumber{999, math.MaxInt32, math.MaxInt32, math.MaxInt32, math.MaxInt32, math.MaxInt32, math.MaxInt32, math.MaxInt32}},
104 }
105
106 for _, tc := range testCases {
107 require.Equal(t, tc.preceding, tc.start.Preceding())
108 }
109}
110
111func TestColumnIterator(t *testing.T) {
112 for _, tc := range iterTestCases {

Callers

nothing calls this directly

Calls 2

PrecedingMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected