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

Function TestOneTarget

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

Source from the content-addressed store, hash-verified

38}
39
40func TestOneTarget(t *testing.T) {
41 var buf bytes.Buffer
42 setUpTest(t, &buf)
43 SetTarget(General)
44 General.Print("test")
45 if buf.String() != "test\n" {
46 t.Error("expected 'test'")
47 }
48}
49
50func TestMultipleTargets(t *testing.T) {
51 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 5

SetTargetFunction · 0.85
PrintMethod · 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…