(t *testing.T)
| 203 | } |
| 204 | |
| 205 | func TestPrefixPrinter_WithScope(t *testing.T) { |
| 206 | for _, p := range prefixPrinters { |
| 207 | t.Run("", func(t *testing.T) { |
| 208 | s := pterm.Scope{ |
| 209 | Text: "test", |
| 210 | Style: pterm.NewStyle(pterm.FgRed, pterm.BgBlue, pterm.Bold), |
| 211 | } |
| 212 | p2 := p.WithScope(s) |
| 213 | |
| 214 | testza.AssertEqual(t, s, p2.Scope) |
| 215 | }) |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | func Test_checkFatal(t *testing.T) { |
| 220 | for _, p := range prefixPrinters { |