(t *testing.T)
| 75 | } |
| 76 | |
| 77 | func TestPanelPrinter_RenderWithBottomPadding(t *testing.T) { |
| 78 | testPrintContains(t, func(w io.Writer, a any) { |
| 79 | panels := pterm.Panels{ |
| 80 | {{Data: pterm.Sprint(a)}}, |
| 81 | {{Data: pterm.Sprint("test")}}, |
| 82 | {{Data: pterm.Sprint("Hello, World!")}}, |
| 83 | } |
| 84 | p := pterm.PanelPrinter{}.WithPanels(panels).WithBottomPadding(1) |
| 85 | err := p.Render() |
| 86 | testza.AssertNoError(t, err) |
| 87 | }) |
| 88 | } |
| 89 | |
| 90 | func TestPanelPrinter_WithPanels(t *testing.T) { |
| 91 | panels := pterm.Panels{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…