MCPcopy
hub / github.com/pterm/pterm / TestHeaderPrinter_WithFullWidthToLongForTerminal

Function TestHeaderPrinter_WithFullWidthToLongForTerminal

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

Source from the content-addressed store, hash-verified

119}
120
121func TestHeaderPrinter_WithFullWidthToLongForTerminal(t *testing.T) {
122 p := pterm.HeaderPrinter{}
123 p2 := p.WithFullWidth().Sprint("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
124
125 testza.AssertContains(t, p2, "a")
126}
127
128func TestHeaderPrinter_ToLongForTerminal(t *testing.T) {
129 p := pterm.HeaderPrinter{}

Callers

nothing calls this directly

Calls 2

WithFullWidthMethod · 0.95
SprintMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…