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

Function TestInvalidDefinitionLevelTruncate

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

Source from the content-addressed store, hash-verified

37}
38
39func TestInvalidDefinitionLevelTruncate(t *testing.T) {
40 t.Run("TruncateRowNumber -1", func(t *testing.T) {
41 assertPanic(t, func() {
42 rn := RowNumber{1, 2, 3, 4, 5, 6, 7, 8}
43 d := -1
44 TruncateRowNumber(d, rn)
45 })
46 })
47 t.Run("TruncateRowNumber Max+1", func(t *testing.T) {
48 assertPanic(t, func() {
49 rn := RowNumber{1, 2, 3, 4, 5, 6, 7, 8}
50 d := MaxDefinitionLevel + 1
51 TruncateRowNumber(d, rn)
52 })
53 })
54}
55
56func TestRowNumberNext(t *testing.T) {
57 tr := EmptyRowNumber()

Callers

nothing calls this directly

Calls 3

assertPanicFunction · 0.85
TruncateRowNumberFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected