Documentation ¶
Overview ¶
Package testsession provides utilities to test SSH sessions.
more or less copied from charmbracelet/ssh tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New starts a local SSH server with the given config and returns a client session. It automatically closes everything afterwards.
func NewClientSession ¶
func NewClientSession(tb testing.TB, addr string, config *gossh.ClientConfig) (*gossh.Session, error)
NewClientSession creates a new client session to the given address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.