MCPcopy Create free account
hub / github.com/develar/app-builder / TestAppend

Function TestAppend

pkg/zap-cli-encoder/consoleEncoder_test.go:11–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestAppend(t *testing.T) {
12 var linePool = buffer.NewPool()
13 buf := linePool.Get()
14 appendPaddedString("a\nb", buf)
15
16 g := NewGomegaWithT(t)
17 g.Expect(buf.String()).To(Equal("a\n" + strings.Repeat(" ", levelIndicatorRuneCount) + "b"))
18}

Callers

nothing calls this directly

Calls 2

appendPaddedStringFunction · 0.85
StringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…