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

Function buildTestLabels

modules/generator/registry/registry_test.go:61–68  ·  view source on GitHub ↗
(names []string, values []string)

Source from the content-addressed store, hash-verified

59}
60
61func buildTestLabels(names []string, values []string) labels.Labels {
62 builder := NewLabelBuilder(0, 0, newTestDrainSanitizer(SpanNameSanitizationDisabled), newTestLabelLimiter())
63 for i := range names {
64 builder.Add(names[i], values[i])
65 }
66 lbls, _ := builder.CloseAndBuildLabels()
67 return lbls
68}
69
70// TODO: rewrite tests to use mocked limiter instead of this
71func (r *ManagedRegistry) activeSeries() uint32 {

Calls 5

AddMethod · 0.95
CloseAndBuildLabelsMethod · 0.95
NewLabelBuilderFunction · 0.85
newTestDrainSanitizerFunction · 0.85
newTestLabelLimiterFunction · 0.85

Tested by

no test coverage detected