MCPcopy
hub / github.com/pterm/pterm / TestProgressbarPrinter_UpdateTitle

Function TestProgressbarPrinter_UpdateTitle

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

Source from the content-addressed store, hash-verified

212}
213
214func TestProgressbarPrinter_UpdateTitle(t *testing.T) {
215 p := pterm.ProgressbarPrinter{}
216 p2 := p.WithTitle("test")
217 p2.UpdateTitle("test2")
218
219 testza.AssertEqual(t, "test2", p2.Title)
220}
221
222func TestProgressbarPrinter_WithWriter(t *testing.T) {
223 p := pterm.ProgressbarPrinter{}

Callers

nothing calls this directly

Calls 2

WithTitleMethod · 0.95
UpdateTitleMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…