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

Function NewTerminalReader

testutil/pty.go:22–28  ·  view source on GitHub ↗
(t *testing.T, r io.Reader)

Source from the content-addressed store, hash-verified

20}
21
22func NewTerminalReader(t *testing.T, r io.Reader) *TerminalReader {
23 return &TerminalReader{
24 t: t,
25 r: r,
26 term: vt10x.New(vt10x.WithSize(80, 80)),
27 }
28}
29
30// ReadUntilString emulates a terminal and reads one byte at a time until we
31// either see the string we want, or the context expires. The PTY must be sized

Callers 6

testReconnectingPTYFunction · 0.92
Test_Start_truncationFunction · 0.92
TestIntegrationDockerFunction · 0.92
Test_RunnerFunction · 0.92

Calls 1

NewMethod · 0.65

Tested by 5

Test_Start_truncationFunction · 0.74
TestIntegrationDockerFunction · 0.74
Test_RunnerFunction · 0.74