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

Function TestProtoToParquetEmptyTrace

tempodb/encoding/vparquet4/schema_test.go:47–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestProtoToParquetEmptyTrace(t *testing.T) {
48 want := &Trace{
49 TraceID: make([]byte, 16),
50 ResourceSpans: nil,
51 ServiceStats: map[string]ServiceStats{},
52 }
53
54 got, connected := traceToParquet(&backend.BlockMeta{}, nil, &tempopb.Trace{}, nil)
55 require.False(t, connected)
56 require.Equal(t, want, got)
57}
58
59func TestProtoParquetRando(t *testing.T) {
60 trp := &Trace{}

Callers

nothing calls this directly

Calls 2

traceToParquetFunction · 0.70
EqualMethod · 0.45

Tested by

no test coverage detected