MCPcopy
hub / github.com/pterm/pterm / TestPanelPrinter_WithBoxPrinter

Function TestPanelPrinter_WithBoxPrinter

panel_printer_test.go:147–153  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

145}
146
147func TestPanelPrinter_WithBoxPrinter(t *testing.T) {
148 p := pterm.PanelPrinter{}
149 p2 := p.WithBoxPrinter(pterm.DefaultBox)
150
151 testza.AssertEqual(t, pterm.DefaultBox, p2.BoxPrinter)
152 testza.AssertZero(t, p.BoxPrinter)
153}
154
155func TestPanelPrinter_WithWriter(t *testing.T) {
156 p := pterm.PanelPrinter{}

Callers

nothing calls this directly

Calls 1

WithBoxPrinterMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…