(t *testing.T)
| 34 | } |
| 35 | |
| 36 | func TestLabelBuilder_InvalidUTF8(t *testing.T) { |
| 37 | builder := NewLabelBuilder(0, 0, newTestDrainSanitizer(SpanNameSanitizationDisabled), newTestLabelLimiter()) |
| 38 | builder.Add("name", "svc-\xc3\x28") // Invalid UTF-8 |
| 39 | |
| 40 | _, ok := builder.CloseAndBuildLabels() |
| 41 | |
| 42 | assert.False(t, ok) |
| 43 | } |
| 44 | |
| 45 | func TestSafeBuilderPool(t *testing.T) { |
| 46 | pool := newSafeBuilderPool() |
nothing calls this directly
no test coverage detected