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

Function TestNewSSHCommand_Run_DefaultFlags

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

Source from the content-addressed store, hash-verified

122}
123
124func TestNewSSHCommand_Run_DefaultFlags(t *testing.T) {
125 cleanup := setupTempConfig(t)
126 defer cleanup()
127
128 cmd := NewSSHCommand()
129 // TryLogin will attempt connections with empty credentials and fail,
130 // but the Run closure body will be exercised
131 cmd.Run(cmd, []string{"192.168.255.255"})
132}
133
134func TestNewSSHCommand_Run_WithUser(t *testing.T) {
135 cleanup := setupTempConfig(t)

Callers

nothing calls this directly

Calls 2

NewSSHCommandFunction · 0.85
setupTempConfigFunction · 0.70

Tested by

no test coverage detected