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

Function TestDecoderInvalidData

pkg/ingest/encoding_test.go:78–83  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76}
77
78func TestDecoderInvalidData(t *testing.T) {
79 decoder := NewDecoder()
80
81 _, err := decoder.Decode([]byte("invalid data"))
82 require.Error(t, err)
83}
84
85func TestEncoderDecoderEmptyStream(t *testing.T) {
86 decoder := NewDecoder()

Callers

nothing calls this directly

Calls 3

DecodeMethod · 0.95
NewDecoderFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected