(t *testing.T, srv *Server, cfg *gossh.ClientConfig, options ...Option)
| 10 | ) |
| 11 | |
| 12 | func 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 | |
| 21 | func TestPasswordAuth(t *testing.T) { |
| 22 | t.Parallel() |
no test coverage detected
searching dependent graphs…