MCPcopy
hub / github.com/pterm/pterm / TestPanelPrinter_RenderMultiplePanelsWithBorder

Function TestPanelPrinter_RenderMultiplePanelsWithBorder

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

Source from the content-addressed store, hash-verified

50}
51
52func TestPanelPrinter_RenderMultiplePanelsWithBorder(t *testing.T) {
53 testPrintContains(t, func(w io.Writer, a any) {
54 panels := pterm.Panels{
55 {{Data: pterm.Sprint("a\nbc\ndef")}, {Data: pterm.Sprint("abcd")}},
56 {{Data: pterm.Sprint(a)}},
57 }
58 p := pterm.PanelPrinter{}.WithPanels(panels).WithBoxPrinter(pterm.DefaultBox)
59 err := p.Render()
60 testza.AssertNoError(t, err)
61 })
62}
63
64func TestPanelPrinter_RenderWithSameColumnWidth(t *testing.T) {
65 testPrintContains(t, func(w io.Writer, a any) {

Callers

nothing calls this directly

Calls 5

SprintFunction · 0.92
testPrintContainsFunction · 0.85
WithBoxPrinterMethod · 0.80
WithPanelsMethod · 0.80
RenderMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…