MCPcopy
hub / github.com/pterm/pterm / TestProgressbarPrinter_WithTotal

Function TestProgressbarPrinter_WithTotal

progressbar_printer_test.go:193–198  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

191}
192
193func TestProgressbarPrinter_WithTotal(t *testing.T) {
194 p := pterm.ProgressbarPrinter{}
195 p2 := p.WithTotal(1337)
196
197 testza.AssertEqual(t, 1337, p2.Total)
198}
199
200func TestProgressbarPrinter_WithMaxWidth(t *testing.T) {
201 p := pterm.ProgressbarPrinter{}

Callers

nothing calls this directly

Calls 1

WithTotalMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…