MCPcopy
hub / github.com/pterm/pterm / TestPrefixPrinter_SprintfWithDebugger

Function TestPrefixPrinter_SprintfWithDebugger

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

Source from the content-addressed store, hash-verified

298}
299
300func TestPrefixPrinter_SprintfWithDebugger(t *testing.T) {
301 for _, p := range prefixPrinters {
302 t.Run("", func(t *testing.T) {
303 p2 := p.WithDebugger()
304 pterm.EnableDebugMessages()
305 testSprintfContains(t, func(format string, a any) string {
306 return p2.Sprintf(format, a)
307 })
308 })
309 }
310}
311
312func TestPrefixPrinter_PrintWithoutDebugger(t *testing.T) {
313 for _, p := range prefixPrinters {

Callers

nothing calls this directly

Calls 4

EnableDebugMessagesFunction · 0.92
testSprintfContainsFunction · 0.85
WithDebuggerMethod · 0.80
SprintfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…