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

Method Close

pty/ptytest/ptytest.go:452–466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450}
451
452func (p *PTYCmd) Close() error {
453 p.t.Helper()
454 pErr := p.PTYCmd.Close()
455 if pErr != nil {
456 p.logf("PTYCmd: Close failed: %v", pErr)
457 }
458 eErr := p.outExpecter.close("PTYCmd close")
459 if eErr != nil {
460 p.logf("PTYCmd: close expecter failed: %v", eErr)
461 }
462 if pErr != nil {
463 return pErr
464 }
465 return eErr
466}
467
468// stdbuf is like a buffered stdout, it buffers writes until read.
469type stdbuf struct {

Callers 1

StartFunction · 0.95

Implementers 2

otherPtypty/pty_other.go
ptyWindowspty/pty_windows.go

Calls 4

logfMethod · 0.80
HelperMethod · 0.65
CloseMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected