MCPcopy
hub / github.com/go-git/go-git / TestEmpty

Function TestEmpty

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

Source from the content-addressed store, hash-verified

29}
30
31func TestEmpty(t *testing.T) {
32 var buf bytes.Buffer
33 setUpTest(t, &buf)
34 General.Print("test")
35 if buf.String() != "" {
36 t.Error("expected empty string")
37 }
38}
39
40func TestOneTarget(t *testing.T) {
41 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 4

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…