MCPcopy
hub / github.com/pterm/pterm / TestPanelPrinter_Render

Function TestPanelPrinter_Render

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

Source from the content-addressed store, hash-verified

27}
28
29func TestPanelPrinter_Render(t *testing.T) {
30 testPrintContains(t, func(w io.Writer, a any) {
31 panels := pterm.Panels{
32 {{Data: pterm.Sprint(a)}},
33 }
34 p := pterm.PanelPrinter{}.WithPanels(panels)
35 err := p.Render()
36 testza.AssertNoError(t, err)
37 })
38}
39
40func TestPanelPrinter_RenderMultiplePanels(t *testing.T) {
41 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…