(t *testing.T)
| 96 | } |
| 97 | |
| 98 | func TestTablePrinter_WithData(t *testing.T) { |
| 99 | proxyToDevNull() |
| 100 | d := pterm.TableData{ |
| 101 | {"Firstname", "Lastname", "Email"}, |
| 102 | {"Paul", "Dean", "nisi.dictum.augue@velitAliquam.co.uk"}, |
| 103 | {"Callie", "Mckay", "egestas.nunc.sed@est.com"}, |
| 104 | {"Libby", "Camacho", "aliquet.lobortis@semper.com"}, |
| 105 | } |
| 106 | p := pterm.TablePrinter{} |
| 107 | p2 := p.WithData(d) |
| 108 | |
| 109 | testza.AssertEqual(t, d, p2.Data) |
| 110 | } |
| 111 | |
| 112 | func TestTablePrinter_WithHasHeader(t *testing.T) { |
| 113 | p := pterm.TablePrinter{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…