@@ -1034,32 +1034,32 @@ type bandwidthValidationResult struct {
10341034func formatBandwidthSummary (result bandwidthValidationResult , testType , direction string ) string {
10351035 var sb strings.Builder
10361036 sb .WriteString ("\n ╔═══════════════════════════════════════════════════════════════════════════════╗\n " )
1037- sb . WriteString ( fmt .Sprintf ( "║ QoS Bandwidth Test Summary - %s (%s)\n " , testType , direction ) )
1037+ fmt .Fprintf ( & sb , "║ QoS Bandwidth Test Summary - %s (%s)\n " , testType , direction )
10381038 sb .WriteString ("╠═══════════════════════════════════════════════════════════════════════════════╣\n " )
1039- sb . WriteString ( fmt .Sprintf ( "║ QoS Limit: %.2f Mbps\n " , result .LimitMbps ) )
1039+ fmt .Fprintf ( & sb , "║ QoS Limit: %.2f Mbps\n " , result .LimitMbps )
10401040
10411041 if result .MaxExpected > 0 {
1042- sb . WriteString ( fmt .Sprintf ( "║ Expected Range: %.2f ~ %.2f Mbps (%.0f%% ~ %.0f%% of limit)\n " ,
1042+ fmt .Fprintf ( & sb , "║ Expected Range: %.2f ~ %.2f Mbps (%.0f%% ~ %.0f%% of limit)\n " ,
10431043 result .MinExpected , result .MaxExpected ,
1044- bandwidthToleranceLow * 100 , bandwidthToleranceHigh * 100 ))
1044+ bandwidthToleranceLow * 100 , bandwidthToleranceHigh * 100 )
10451045 } else {
1046- sb . WriteString ( fmt .Sprintf ( "║ Expected: > %.2f Mbps (QoS disabled, should exceed %.0f%% of limit)\n " ,
1047- result .MinExpected , bandwidthToleranceHigh * 100 ))
1046+ fmt .Fprintf ( & sb , "║ Expected: > %.2f Mbps (QoS disabled, should exceed %.0f%% of limit)\n " ,
1047+ result .MinExpected , bandwidthToleranceHigh * 100 )
10481048 }
10491049
10501050 sb .WriteString ("║ Measured Values: " )
10511051 for i , bw := range result .MeasuredMbps {
10521052 if i > 0 {
10531053 sb .WriteString (", " )
10541054 }
1055- sb . WriteString ( fmt .Sprintf ( "%.2f" , bw ) )
1055+ fmt .Fprintf ( & sb , "%.2f" , bw )
10561056 }
10571057 sb .WriteString (" Mbps\n " )
10581058
10591059 if result .Passed {
1060- sb . WriteString ( fmt .Sprintf ( "║ Best Match: %.2f Mbps ✓ PASS\n " , result .BestMatch ) )
1060+ fmt .Fprintf ( & sb , "║ Best Match: %.2f Mbps ✓ PASS\n " , result .BestMatch )
10611061 } else {
1062- sb . WriteString ( fmt .Sprintf ( "║ Best Match: %.2f Mbps ✗ FAIL\n " , result .BestMatch ) )
1062+ fmt .Fprintf ( & sb , "║ Best Match: %.2f Mbps ✗ FAIL\n " , result .BestMatch )
10631063 }
10641064
10651065 sb .WriteString ("╚═══════════════════════════════════════════════════════════════════════════════╝\n " )
0 commit comments