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

Function TestProtoToParquetEmptyTrace

tempodb/encoding/vparquet3/schema_test.go:41–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39}
40
41func TestProtoToParquetEmptyTrace(t *testing.T) {
42 want := &Trace{
43 TraceID: make([]byte, 16),
44 ResourceSpans: nil,
45 }
46
47 got, connected := traceToParquet(&backend.BlockMeta{}, nil, &tempopb.Trace{}, nil)
48 require.False(t, connected)
49 require.Equal(t, want, got)
50}
51
52func TestProtoParquetRando(t *testing.T) {
53 trp := &Trace{}

Callers

nothing calls this directly

Calls 2

traceToParquetFunction · 0.70
EqualMethod · 0.45

Tested by

no test coverage detected