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

Function randomWordList

pkg/drain/testdata/generate-random-span-names/main.go:147–154  ·  view source on GitHub ↗
(r *rand.Rand)

Source from the content-addressed store, hash-verified

145}
146
147func randomWordList(r *rand.Rand) string {
148 length := r.Intn(10) + 1
149 words := make([]string, length)
150 for i := range words {
151 words[i] = randomWord(r)
152 }
153 return strings.Join(words, "-")
154}
155
156func randomWord(r *rand.Rand) string {
157 words := []string{

Callers 2

generateFeatureFunction · 0.85
randomSQLFunction · 0.85

Calls 2

randomWordFunction · 0.85
JoinMethod · 0.65

Tested by

no test coverage detected