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

Method ReadAll

pty/ptytest/ptytest.go:482–492  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

480}
481
482func (b *stdbuf) ReadAll() []byte {
483 b.mu.Lock()
484 defer b.mu.Unlock()
485
486 if b.err != nil {
487 return nil
488 }
489 p := append([]byte(nil), b.b...)
490 b.b = b.b[len(b.b):]
491 return p
492}
493
494func (b *stdbuf) Read(p []byte) (int, error) {
495 if b.r == nil {

Callers 15

postFileMethod · 0.45
TestUserOIDCFunction · 0.45
TestHealthzFunction · 0.45
TestSwaggerFunction · 0.45
TestCSRFExemptFunction · 0.45
TestAIProvidersCRUDFunction · 0.45

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 15

TestUserOIDCFunction · 0.36
TestHealthzFunction · 0.36
TestSwaggerFunction · 0.36
TestCSRFExemptFunction · 0.36
TestAIProvidersCRUDFunction · 0.36
TestDebugHealthFunction · 0.36