MCPcopy
hub / github.com/pterm/pterm / TestPrefixPrinter_WithPrefix

Function TestPrefixPrinter_WithPrefix

prefix_printer_test.go:191–203  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

189}
190
191func TestPrefixPrinter_WithPrefix(t *testing.T) {
192 for _, p := range prefixPrinters {
193 t.Run("", func(t *testing.T) {
194 s := pterm.Prefix{
195 Text: "test",
196 Style: pterm.NewStyle(pterm.FgRed, pterm.BgBlue, pterm.Bold),
197 }
198 p2 := p.WithPrefix(s)
199
200 testza.AssertEqual(t, s, p2.Prefix)
201 })
202 }
203}
204
205func TestPrefixPrinter_WithScope(t *testing.T) {
206 for _, p := range prefixPrinters {

Callers

nothing calls this directly

Calls 2

NewStyleFunction · 0.92
WithPrefixMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…