MCPcopy Create free account
hub / github.com/cloudfoundry/garden / Write

Method Write

server/streamer/streamer_test.go:133–141  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

131}
132
133func (sb *syncBuffer) Write(p []byte) (int, error) {
134 sb.mu.Lock()
135 defer sb.mu.Unlock()
136 if sb.fail {
137 sb.fail = false
138 return 0, errors.New("failed")
139 }
140 return sb.Buffer.Write(p)
141}
142
143func (sb *syncBuffer) String() string {
144 sb.mu.Lock()

Callers 2

serveMethod · 0.45
drainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected