MCPcopy
hub / github.com/pterm/pterm / TestPrefixPrinter_PrintfWithDebugger

Function TestPrefixPrinter_PrintfWithDebugger

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

Source from the content-addressed store, hash-verified

262}
263
264func TestPrefixPrinter_PrintfWithDebugger(t *testing.T) {
265 for _, p := range prefixPrinters {
266 t.Run("", func(t *testing.T) {
267 p2 := p.WithDebugger()
268 pterm.EnableDebugMessages()
269 testPrintfContains(t, func(w io.Writer, format string, a any) {
270 p2.WithWriter(w).Printf(format, a)
271 })
272 })
273 }
274}
275
276func TestPrefixPrinter_SprintWithDebugger(t *testing.T) {
277 for _, p := range prefixPrinters {

Callers

nothing calls this directly

Calls 5

EnableDebugMessagesFunction · 0.92
testPrintfContainsFunction · 0.85
WithDebuggerMethod · 0.80
PrintfMethod · 0.65
WithWriterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…