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

Function bufferFor

scripts/gotestsummary/main.go:255–262  ·  view source on GitHub ↗
(buffers map[testKey]*tailBuffer, key testKey, maxOutputBytes int)

Source from the content-addressed store, hash-verified

253}
254
255func bufferFor(buffers map[testKey]*tailBuffer, key testKey, maxOutputBytes int) *tailBuffer {
256 buffer := buffers[key]
257 if buffer == nil {
258 buffer = &tailBuffer{maxBytes: maxOutputBytes}
259 buffers[key] = buffer
260 }
261 return buffer
262}
263
264func (b *tailBuffer) Append(output string) {
265 if b.maxBytes == 0 || output == "" {

Callers 1

summarizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected