@@ -1101,7 +1101,7 @@ func TestMetricNamer_Build(t *testing.T) {
11011101 // Build metric name using MetricNamer
11021102 gotMetricName := tt .namer .Build (tt .metric )
11031103 if tt .expectedMetricName != gotMetricName {
1104- t .Errorf ("%q: namer.Build(%v), got %q, want %q" , tt . name , tt .metric , gotMetricName , tt .expectedMetricName )
1104+ t .Errorf ("namer.Build(%v), got %q, want %q" , tt .metric , gotMetricName , tt .expectedMetricName )
11051105 }
11061106
11071107 // Build unit name using UnitNamer to verify correlation when suffixes are enabled
@@ -1111,14 +1111,14 @@ func TestMetricNamer_Build(t *testing.T) {
11111111 }
11121112 gotUnitName := unitNamer .Build (tt .metric .Unit )
11131113 if tt .expectedUnitName != gotUnitName {
1114- t .Errorf ("%q: unitNamer.Build(%q), got %q, want %q" , tt . name , tt .metric .Unit , gotUnitName , tt .expectedUnitName )
1114+ t .Errorf ("unitNamer.Build(%q), got %q, want %q" , tt .metric .Unit , gotUnitName , tt .expectedUnitName )
11151115 }
11161116
11171117 // Verify correlation: if UnitNamer produces a non-empty unit name,
11181118 // it should be contained in the metric name when WithMetricSuffixes=true
11191119 if gotUnitName != "" && tt .namer .WithMetricSuffixes {
11201120 if ! strings .Contains (gotMetricName , gotUnitName ) {
1121- t .Errorf ("%q: Metric name '%q' should contain unit name '%s' when WithMetricSuffixes=true" , tt . name , gotMetricName , gotUnitName )
1121+ t .Errorf ("Metric name '%q' should contain unit name '%s' when WithMetricSuffixes=true" , gotMetricName , gotUnitName )
11221122 }
11231123 }
11241124 }
0 commit comments