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

Function RandomString

pkg/util/test/req.go:475–483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473}
474
475func RandomString() string {
476 letters := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
477
478 s := make([]rune, 10)
479 for i := range s {
480 s[i] = letters[rand.Intn(len(letters))] // nolint:gosec // G404: Use of weak random number generator
481 }
482 return string(s)
483}
484
485func TracesEqual(t *testing.T, t1 *tempopb.Trace, t2 *tempopb.Trace) {
486 if !proto.Equal(t1, t2) {

Callers 12

advancedTraceQLRunnerFunction · 0.92
conditionsForAttributesFunction · 0.92
makeTracesFunction · 0.92
makeTracesFunction · 0.92
makeTracesFunction · 0.92
TestDiffCounterFunction · 0.92
TestPublishFunction · 0.92
TestQueryBuilderFunction · 0.92
randoDedicatedColsFunction · 0.92
makeBatchWithTimeRangeFunction · 0.85

Calls

no outgoing calls

Tested by 10

advancedTraceQLRunnerFunction · 0.74
conditionsForAttributesFunction · 0.74
makeTracesFunction · 0.74
makeTracesFunction · 0.74
makeTracesFunction · 0.74
TestDiffCounterFunction · 0.74
TestPublishFunction · 0.74
TestQueryBuilderFunction · 0.74
randoDedicatedColsFunction · 0.74