MCPcopy Index your code
hub / github.com/cortexproject/cortex / createLabels

Function createLabels

integration/grpc_server_test.go:285–294  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

283}
284
285func 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
296func getLocalHostPort() (int, func() error, error) {
297 addr, err := net.ResolveTCPAddr("tcp", "localhost:0")

Callers 2

createStreamResponseFunction · 0.85
createRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected