MCPcopy
hub / github.com/pterm/pterm / TestPrefixPrinter_WithWriter

Function TestPrefixPrinter_WithWriter

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

Source from the content-addressed store, hash-verified

415}
416
417func TestPrefixPrinter_WithWriter(t *testing.T) {
418 for _, p := range prefixPrinters {
419 t.Run("", func(t *testing.T) {
420 s := os.Stderr
421 p2 := p.WithWriter(s)
422
423 testza.AssertEqual(t, s, p2.GetWriter())
424 })
425 }
426}
427
428func TestPrefixPrinter_GetWriter(t *testing.T) {
429 for _, p := range prefixPrinters {

Callers

nothing calls this directly

Calls 2

GetWriterMethod · 0.80
WithWriterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…