(ctx context.Context)
| 121 | ) |
| 122 | |
| 123 | func 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 | |
| 134 | func (s *testSession) Context() gliderssh.Context { |
| 135 | return s.ctx |
no outgoing calls
no test coverage detected