MCPcopy
hub / github.com/pterm/pterm / TestPrefixPrinter_PrintWithDebugger

Function TestPrefixPrinter_PrintWithDebugger

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

Source from the content-addressed store, hash-verified

238}
239
240func TestPrefixPrinter_PrintWithDebugger(t *testing.T) {
241 for _, p := range prefixPrinters {
242 t.Run("", func(t *testing.T) {
243 p2 := p.WithDebugger()
244 pterm.EnableDebugMessages()
245 testPrintContains(t, func(w io.Writer, a any) {
246 p2.WithWriter(w).Print(a)
247 })
248 })
249 }
250}
251
252func TestPrefixPrinter_PrintlnWithDebugger(t *testing.T) {
253 for _, p := range prefixPrinters {

Callers

nothing calls this directly

Calls 5

EnableDebugMessagesFunction · 0.92
testPrintContainsFunction · 0.85
WithDebuggerMethod · 0.80
PrintMethod · 0.65
WithWriterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…