MCPcopy
hub / github.com/pterm/pterm / TestPanelPrinter_RenderMultiplePanels

Function TestPanelPrinter_RenderMultiplePanels

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

Source from the content-addressed store, hash-verified

38}
39
40func TestPanelPrinter_RenderMultiplePanels(t *testing.T) {
41 testPrintContains(t, func(w io.Writer, a any) {
42 panels := pterm.Panels{
43 {{Data: pterm.Sprint("a\nbc\ndef")}, {Data: pterm.Sprint("abcd")}},
44 {{Data: pterm.Sprint(a)}},
45 }
46 p := pterm.PanelPrinter{}.WithPanels(panels)
47 err := p.Render()
48 testza.AssertNoError(t, err)
49 })
50}
51
52func TestPanelPrinter_RenderMultiplePanelsWithBorder(t *testing.T) {
53 testPrintContains(t, func(w io.Writer, a any) {

Callers

nothing calls this directly

Calls 4

SprintFunction · 0.92
testPrintContainsFunction · 0.85
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…