MCPcopy
hub / github.com/pterm/pterm / TestBoxPrinter_WithInvalidBottomPadding

Function TestBoxPrinter_WithInvalidBottomPadding

box_printer_test.go:325–331  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

323}
324
325func TestBoxPrinter_WithInvalidBottomPadding(t *testing.T) {
326 p := pterm.BoxPrinter{}
327 p2 := p.WithBottomPadding(-5)
328
329 testza.AssertEqual(t, 0, p2.BottomPadding)
330 testza.AssertZero(t, p.BottomPadding)
331}
332
333func TestBoxPrinter_WithInvalidLeftPadding(t *testing.T) {
334 p := pterm.BoxPrinter{}

Callers

nothing calls this directly

Calls 1

WithBottomPaddingMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…