MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Write

Method Write

rest/utilities_testing.go:1280–1291  ·  view source on GitHub ↗
(buf []byte)

Source from the content-addressed store, hash-verified

1278}
1279
1280func (s *SlowResponseRecorder) Write(buf []byte) (int, error) {
1281
1282 s.responseStarted.Done()
1283
1284 time.Sleep(s.responseDelay)
1285
1286 numBytesWritten, err := s.ResponseRecorder.Write(buf)
1287
1288 s.responseFinished.Done()
1289
1290 return numBytesWritten, err
1291}
1292
1293// AddDatabaseFromConfigWithBucket adds a database to the ServerContext and sets a specific bucket on the database context.
1294// If an existing config is found for the name, returns an error.

Callers 15

authKeyFunction · 0.45
Sha1HashStringFunction · 0.45
tempX509CertsFunction · 0.45
BenchmarkLogRotationFunction · 0.45
createTempFileFunction · 0.45
javaScriptFileFunction · 0.45
writeJSONPartFunction · 0.45
WriteMultipartDocumentFunction · 0.45
WriteRevisionAsPartFunction · 0.45

Calls 1

DoneMethod · 0.80

Tested by 11

tempX509CertsFunction · 0.36
BenchmarkLogRotationFunction · 0.36
createTempFileFunction · 0.36
javaScriptFileFunction · 0.36
TestReadJSONFromMIMEFunction · 0.36
TestBytesReadGzipRequestFunction · 0.36