MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestNewSSHCommand_Structure

Function TestNewSSHCommand_Structure

cmd/ssh/ssh_test.go:37–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func TestNewSSHCommand_Structure(t *testing.T) {
38 cmd := NewSSHCommand()
39
40 assert.NotNil(t, cmd)
41 assert.Equal(t, "ssh <ipAddress>", cmd.Use)
42 assert.Equal(t, "Connect to the server through SSH protocol", cmd.Short)
43 assert.Equal(t, "Connect to the server through SSH protocol", cmd.Long)
44 assert.NotNil(t, cmd.Run)
45}
46
47func TestNewSSHCommand_Flags(t *testing.T) {
48 cmd := NewSSHCommand()

Callers

nothing calls this directly

Calls 1

NewSSHCommandFunction · 0.85

Tested by

no test coverage detected