(t *testing.T)
| 126 | } |
| 127 | |
| 128 | func TestPrefixPrinterWithoutPrefix(t *testing.T) { |
| 129 | pterm.DisableStyling() |
| 130 | for _, p := range prefixPrinters { |
| 131 | p2 := p.WithPrefix(pterm.Prefix{}) |
| 132 | t.Run("", func(t *testing.T) { |
| 133 | for _, printable := range printables { |
| 134 | ret := captureStdout(func(w io.Writer) { |
| 135 | p2.WithWriter(w).Print(printable) |
| 136 | }) |
| 137 | testza.AssertEqual(t, ret, fmt.Sprint(printable)) |
| 138 | } |
| 139 | }) |
| 140 | } |
| 141 | pterm.EnableStyling() |
| 142 | } |
| 143 | |
| 144 | func TestSprintfWithNewLineEnding(t *testing.T) { |
| 145 | for _, p := range prefixPrinters { |
nothing calls this directly
no test coverage detected
searching dependent graphs…