(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func TestLabelBuilder_Sanitizer(t *testing.T) { |
| 70 | builder := NewLabelBuilder(0, 0, sanitizerFunc(func(_ labels.Labels) labels.Labels { |
| 71 | return labels.FromStrings("name", "sanitized_value") |
| 72 | }), newTestLabelLimiter()) |
| 73 | builder.Add("name", "value") |
| 74 | lbls, ok := builder.CloseAndBuildLabels() |
| 75 | |
| 76 | assert.True(t, ok) |
| 77 | assert.Equal(t, labels.FromStrings("name", "sanitized_value"), lbls) |
| 78 | } |
nothing calls this directly
no test coverage detected