MCPcopy
hub / github.com/pterm/pterm / TestPanelPrinterNilPrintWithPanels

Function TestPanelPrinterNilPrintWithPanels

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

Source from the content-addressed store, hash-verified

16}
17
18func TestPanelPrinterNilPrintWithPanels(t *testing.T) {
19 panels := pterm.Panels{
20 {
21 {Data: "Hello, World"},
22 },
23 }
24 p := pterm.PanelPrinter{}.WithPanels(panels)
25 err := p.Render()
26 testza.AssertNoError(t, err)
27}
28
29func TestPanelPrinter_Render(t *testing.T) {
30 testPrintContains(t, func(w io.Writer, a any) {

Callers

nothing calls this directly

Calls 2

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…