(t *testing.T)
| 62 | } |
| 63 | |
| 64 | func TestPanelPrinter_RenderWithSameColumnWidth(t *testing.T) { |
| 65 | testPrintContains(t, func(w io.Writer, a any) { |
| 66 | panels := pterm.Panels{ |
| 67 | {{Data: pterm.Sprint(a)}}, |
| 68 | {{Data: pterm.Sprint("test")}}, |
| 69 | {{Data: pterm.Sprint("Hello, World!")}}, |
| 70 | } |
| 71 | p := pterm.PanelPrinter{}.WithPanels(panels).WithSameColumnWidth() |
| 72 | err := p.Render() |
| 73 | testza.AssertNoError(t, err) |
| 74 | }) |
| 75 | } |
| 76 | |
| 77 | func TestPanelPrinter_RenderWithBottomPadding(t *testing.T) { |
| 78 | testPrintContains(t, func(w io.Writer, a any) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…