MCPcopy Index your code
hub / github.com/belak/gitdir / TestWriteStringFmt

Function TestWriteStringFmt

utils_test.go:57–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

55}
56
57func TestWriteStringFmt(t *testing.T) {
58 t.Parallel()
59
60 buf := bytes.NewBuffer(nil)
61
62 err := writeStringFmt(buf, "hello %s", "world")
63 assert.Nil(t, err)
64 assert.Equal(t, "hello world", buf.String())
65}
66
67func TestGetExitStatusFromError(t *testing.T) {
68 t.Parallel()

Callers

nothing calls this directly

Calls 2

writeStringFmtFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected