(t *testing.T)
| 104 | } |
| 105 | |
| 106 | func TestProgressBarMultipleUpdates(t *testing.T) { |
| 107 | bar := NewProgressBar(1000) |
| 108 | |
| 109 | // Simulate progressive updates |
| 110 | updates := []int64{0, 250, 500, 750, 1000} |
| 111 | for _, value := range updates { |
| 112 | output := bar.Update(value) |
| 113 | assert.NotEmpty(t, output, "Each update should produce output") |
| 114 | assert.Equal(t, value, bar.current, "Current should track the latest update") |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | func TestFormatBytes(t *testing.T) { |
| 119 | tests := []struct { |
nothing calls this directly
no test coverage detected