(t *testing.T)
| 328 | } |
| 329 | |
| 330 | func TestProgressBarModeSelection(t *testing.T) { |
| 331 | t.Run("determinate mode has total and not indeterminate", func(t *testing.T) { |
| 332 | bar := NewProgressBar(1024) |
| 333 | assert.Equal(t, int64(1024), bar.total, "Determinate mode should have total") |
| 334 | assert.False(t, bar.indeterminate, "Determinate mode should not be indeterminate") |
| 335 | }) |
| 336 | } |
nothing calls this directly
no test coverage detected