(t *testing.T)
| 295 | } |
| 296 | |
| 297 | func TestProgressBarConcurrency(t *testing.T) { |
| 298 | t.Run("multiple updates are safe", func(t *testing.T) { |
| 299 | bar := NewProgressBar(1000) |
| 300 | |
| 301 | // Sequential updates should be safe |
| 302 | for i := int64(0); i <= 1000; i += 100 { |
| 303 | output := bar.Update(i) |
| 304 | assert.NotEmpty(t, output, "Each update should produce output") |
| 305 | } |
| 306 | }) |
| 307 | } |
| 308 | |
| 309 | func TestProgressBarNonTTYFallback(t *testing.T) { |
| 310 | // This test documents the expected behavior in non-TTY environments |
nothing calls this directly
no test coverage detected