(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func TestPanelPrinter_RenderMultiplePanelsWithBorder(t *testing.T) { |
| 53 | testPrintContains(t, func(w io.Writer, a any) { |
| 54 | panels := pterm.Panels{ |
| 55 | {{Data: pterm.Sprint("a\nbc\ndef")}, {Data: pterm.Sprint("abcd")}}, |
| 56 | {{Data: pterm.Sprint(a)}}, |
| 57 | } |
| 58 | p := pterm.PanelPrinter{}.WithPanels(panels).WithBoxPrinter(pterm.DefaultBox) |
| 59 | err := p.Render() |
| 60 | testza.AssertNoError(t, err) |
| 61 | }) |
| 62 | } |
| 63 | |
| 64 | func TestPanelPrinter_RenderWithSameColumnWidth(t *testing.T) { |
| 65 | testPrintContains(t, func(w io.Writer, a any) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…