MCPcopy Index your code
hub / github.com/coder/coder / Append

Method Append

scripts/gotestsummary/main.go:264–272  ·  view source on GitHub ↗
(output string)

Source from the content-addressed store, hash-verified

262}
263
264func (b *tailBuffer) Append(output string) {
265 if b.maxBytes == 0 || output == "" {
266 return
267 }
268 b.value += output
269 if len(b.value) > b.maxBytes {
270 b.value = b.value[len(b.value)-b.maxBytes:]
271 }
272}
273
274func (b *tailBuffer) String() string {
275 return strings.ToValidUTF8(b.value, "")

Callers 2

summarizeFunction · 0.45
CleanupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected