@@ -28,7 +28,7 @@ func TestShellPerformanceComparison(t *testing.T) {
2828 assert.Equal(t, 0, exitCode)
2929 assert.Contains(t, stdout, "hello")
3030 assert.Empty(t, stderr)
31−
31+
3232 t.Logf("Quick command took: %v", duration)
3333}
3434
@@ -48,13 +48,13 @@ func TestShellCPUUsageComparison(t *testing.T) {
4848 start := time.Now()
4949 _, stderr, exitCode, _, err := shell.Exec(context.Background(), "sleep 0.1", 1000)
5050 duration := time.Since(start)
51−
51+
5252 runtime.ReadMemStats(&m2)
5353
5454 require.NoError(t, err)
5555 assert.Equal(t, 0, exitCode)
5656 assert.Empty(t, stderr)
57−
57+
5858 memGrowth := m2.Alloc - m1.Alloc
5959 t.Logf("Sleep 0.1s command took: %v", duration)
6060 t.Logf("Memory growth during polling: %d bytes", memGrowth)
@@ -72,7 +72,7 @@ func BenchmarkShellPolling(b *testing.B) {
7272
7373 b.ResetTimer()
7474 b.ReportAllocs()
75−
75+
7676 for i := 0; i < b.N; i++ {
7777 // Use a short sleep to measure polling overhead
7878 _, _, exitCode, _, err := shell.Exec(context.Background(), "sleep 0.02", 500)
@@ -80,4 +80,4 @@ func BenchmarkShellPolling(b *testing.B) {
8080 b.Fatalf("Command failed: %v, exit code: %d", err, exitCode)
8181 }
8282 }
83−}
83+}