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

Function Test_helpers

tempodb/backend/uuid_test.go:49–60  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func Test_helpers(t *testing.T) {
50 u := google_uuid.New()
51 s := MustParse(u.String())
52 require.Equal(t, u, (google_uuid.UUID)(s))
53
54 s2, err := ParseUUID(u.String())
55 require.NoError(t, err)
56 require.Equal(t, u, (google_uuid.UUID)(s2))
57
58 _, err = ParseUUID("x")
59 require.Error(t, err)
60}

Callers

nothing calls this directly

Calls 5

MustParseFunction · 0.85
ParseUUIDFunction · 0.85
ErrorMethod · 0.65
StringMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected