MCPcopy
hub / github.com/pterm/pterm / TestPanelPrinter_WithPanels

Function TestPanelPrinter_WithPanels

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

Source from the content-addressed store, hash-verified

88}
89
90func TestPanelPrinter_WithPanels(t *testing.T) {
91 panels := pterm.Panels{
92 {
93 {Data: "Hello, World!"},
94 },
95 }
96 p := pterm.PanelPrinter{}
97 p2 := p.WithPanels(panels)
98
99 testza.AssertEqual(t, panels, p2.Panels)
100 testza.AssertZero(t, p.Panels)
101}
102
103func TestPanelPrinter_WithPadding(t *testing.T) {
104 padding := 1337

Callers

nothing calls this directly

Calls 1

WithPanelsMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…