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

Function TestGenerateRandomLogs

pkg/util/trace_info_test.go:27–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func TestGenerateRandomLogs(t *testing.T) {
28 now := time.Now()
29 info := NewTraceInfo(now, "")
30 result := info.generateRandomLogs()
31
32 for _, l := range result {
33 require.NotNil(t, l.Timestamp)
34 for _, f := range l.Fields {
35 assertStandardVultureKey(t, f)
36 }
37 }
38}
39
40func TestGenerateRandomTags(t *testing.T) {
41 now := time.Now()

Callers

nothing calls this directly

Calls 4

generateRandomLogsMethod · 0.95
NewTraceInfoFunction · 0.85
assertStandardVultureKeyFunction · 0.85
NowMethod · 0.65

Tested by

no test coverage detected