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

Method Close

pty/ptytest/ptytest.go:389–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387}
388
389func (p *PTY) Close() error {
390 p.t.Helper()
391 p.closeOnce.Do(func() {
392 pErr := p.PTY.Close()
393 if pErr != nil {
394 p.logf("PTY: Close failed: %v", pErr)
395 }
396 eErr := p.outExpecter.close("PTY close")
397 if eErr != nil {
398 p.logf("PTY: close expecter failed: %v", eErr)
399 }
400 if pErr != nil {
401 p.closeErr = pErr
402 return
403 }
404 p.closeErr = eErr
405 })
406 return p.closeErr
407}
408
409func (p *PTY) Attach(inv *serpent.Invocation) *PTY {
410 p.t.Helper()

Callers 1

NewFunction · 0.95

Implementers 3

otherPtypty/pty_other.go
ptyWindowspty/pty_windows.go
testPTYpty/ptytest/ptytest_windows.go

Calls 5

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

Tested by

no test coverage detected