MCPcopy Create free account
hub / github.com/github/gh-aw / TestProgressBarModeSelection

Function TestProgressBarModeSelection

pkg/console/progress_test.go:330–336  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

328}
329
330func 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}

Callers

nothing calls this directly

Calls 2

NewProgressBarFunction · 0.70
RunMethod · 0.45

Tested by

no test coverage detected