MCPcopy Create free account
hub / github.com/coder/coder / newTestSession

Function newTestSession

agent/agentssh/agentssh_internal_test.go:123–132  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

121)
122
123func newTestSession(ctx context.Context) (toClient *io.PipeReader, fromClient *io.PipeWriter, s ptySession) {
124 toClient, fromPty := io.Pipe()
125 toPty, fromClient := io.Pipe()
126
127 return toClient, fromClient, &testSession{
128 ctx: testSSHContext{ctx},
129 toPty: toPty,
130 fromPty: fromPty,
131 }
132}
133
134func (s *testSession) Context() gliderssh.Context {
135 return s.ctx

Callers 1

Test_sessionStart_orphanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected