MCPcopy
hub / github.com/pterm/pterm / TestProgressbarPrinter_GetElapsedTime

Function TestProgressbarPrinter_GetElapsedTime

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

Source from the content-addressed store, hash-verified

92}
93
94func TestProgressbarPrinter_GetElapsedTime(t *testing.T) {
95 p := pterm.DefaultProgressbar
96 p.Start()
97 p.Stop()
98 testza.AssertNotZero(t, p.GetElapsedTime())
99}
100
101func TestProgressbarPrinter_Increment(t *testing.T) {
102 p := pterm.DefaultProgressbar.WithTotal(2000)

Callers

nothing calls this directly

Calls 3

GetElapsedTimeMethod · 0.80
StartMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…