Documentation
¶
Overview ¶
Package sshtest is a stand-in for ssh in tests, so the files of a host a terminal is logged in to (fs.ssh.v1) are tested without a network: the test binary, run under the name ssh, logs in by waiting as a shell would, and asked for sftp serves a folder of this machine as the host's home.
A test package calls Main from TestMain and Install before it starts a terminal or a server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host struct {
SSH string // the program, to run as a terminal's command
Home string // what the host's home is
// contains filtered or unexported fields
}
Host is the stand-in, installed for one test.
func Install ¶
Install makes the stand-in the ssh conch runs ($CONCH_SSH), with a fresh home for its host.