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

Function newTestSessionWithOptions

options_test.go:12–19  ·  view source on GitHub ↗
(t *testing.T, srv *Server, cfg *gossh.ClientConfig, options ...Option)

Source from the content-addressed store, hash-verified

10)
11
12func newTestSessionWithOptions(t *testing.T, srv *Server, cfg *gossh.ClientConfig, options ...Option) (*gossh.Session, *gossh.Client, func()) {
13 for _, option := range options {
14 if err := srv.SetOption(option); err != nil {
15 t.Fatal(err)
16 }
17 }
18 return newTestSession(t, srv, cfg)
19}
20
21func TestPasswordAuth(t *testing.T) {
22 t.Parallel()

Callers 4

TestSetPermissionsFunction · 0.85
TestSetValueFunction · 0.85
TestPasswordAuthFunction · 0.85
TestConnWrappingFunction · 0.85

Calls 2

newTestSessionFunction · 0.85
SetOptionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…