(i int)
| 283 | } |
| 284 | |
| 285 | func createLabels(i int) []cortexpb.LabelAdapter { |
| 286 | labels := make([]cortexpb.LabelAdapter, 0, 100) |
| 287 | for j := 0; j < 100; j++ { |
| 288 | labels = append(labels, cortexpb.LabelAdapter{ |
| 289 | Name: fmt.Sprintf("test%d_%d", i, j), |
| 290 | Value: fmt.Sprintf("test%d_%d", i, j), |
| 291 | }) |
| 292 | } |
| 293 | return labels |
| 294 | } |
| 295 | |
| 296 | func getLocalHostPort() (int, func() error, error) { |
| 297 | addr, err := net.ResolveTCPAddr("tcp", "localhost:0") |
no outgoing calls
no test coverage detected