MCPcopy
hub / github.com/pterm/pterm / TestPanelPrinter_RenderWithBottomPadding

Function TestPanelPrinter_RenderWithBottomPadding

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

Source from the content-addressed store, hash-verified

75}
76
77func TestPanelPrinter_RenderWithBottomPadding(t *testing.T) {
78 testPrintContains(t, func(w io.Writer, a any) {
79 panels := pterm.Panels{
80 {{Data: pterm.Sprint(a)}},
81 {{Data: pterm.Sprint("test")}},
82 {{Data: pterm.Sprint("Hello, World!")}},
83 }
84 p := pterm.PanelPrinter{}.WithPanels(panels).WithBottomPadding(1)
85 err := p.Render()
86 testza.AssertNoError(t, err)
87 })
88}
89
90func TestPanelPrinter_WithPanels(t *testing.T) {
91 panels := pterm.Panels{

Callers

nothing calls this directly

Calls 5

SprintFunction · 0.92
testPrintContainsFunction · 0.85
WithPanelsMethod · 0.80
RenderMethod · 0.65
WithBottomPaddingMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…