MCPcopy Index your code
hub / github.com/go-git/go-git / TestPrintf

Function TestPrintf

utils/trace/trace_test.go:61–69  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestPrintf(t *testing.T) {
62 var buf bytes.Buffer
63 setUpTest(t, &buf)
64 SetTarget(General)
65 General.Printf("a %d", 1)
66 if buf.String() != "a 1\n" {
67 t.Error("expected 'a 1\n'")
68 }
69}
70
71func TestDisabledMultipleTargets(t *testing.T) {
72 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 5

SetTargetFunction · 0.85
PrintfMethod · 0.80
setUpTestFunction · 0.70
StringMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…