MCPcopy
hub / github.com/gliderlabs/ssh / newTestSession

Function newTestSession

session_test.go:66–70  ·  view source on GitHub ↗
(t *testing.T, srv *Server, cfg *gossh.ClientConfig)

Source from the content-addressed store, hash-verified

64}
65
66func newTestSession(t *testing.T, srv *Server, cfg *gossh.ClientConfig) (*gossh.Session, *gossh.Client, func()) {
67 l := newLocalListener()
68 go srv.serveOnce(l)
69 return newClientSession(t, l.Addr().String(), cfg)
70}
71
72func TestStdout(t *testing.T) {
73 t.Parallel()

Callers 14

TestStdoutFunction · 0.85
TestStderrFunction · 0.85
TestStdinFunction · 0.85
TestUserFunction · 0.85
TestExitStatusNonZeroFunction · 0.85
TestPtyFunction · 0.85
TestPtyResizeFunction · 0.85
TestSignalsFunction · 0.85

Calls 3

newLocalListenerFunction · 0.85
newClientSessionFunction · 0.85
serveOnceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…