()
| 473 | } |
| 474 | |
| 475 | func 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 | |
| 485 | func TracesEqual(t *testing.T, t1 *tempopb.Trace, t2 *tempopb.Trace) { |
| 486 | if !proto.Equal(t1, t2) { |
no outgoing calls