MCPcopy
hub / github.com/pterm/pterm / TestHeaderPrinter_WithBackgroundStyle

Function TestHeaderPrinter_WithBackgroundStyle

header_printer_test.go:106–112  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

104}
105
106func TestHeaderPrinter_WithBackgroundStyle(t *testing.T) {
107 s := pterm.NewStyle(pterm.FgRed, pterm.BgGray, pterm.Bold)
108 p := pterm.HeaderPrinter{}
109 p2 := p.WithBackgroundStyle(s)
110
111 testza.AssertEqual(t, s, p2.BackgroundStyle)
112}
113
114func TestHeaderPrinter_WithFullWidth(t *testing.T) {
115 p := pterm.HeaderPrinter{}

Callers

nothing calls this directly

Calls 2

WithBackgroundStyleMethod · 0.95
NewStyleFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…