(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func 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 | |
| 134 | func TestNewSSHCommand_Run_WithUser(t *testing.T) { |
| 135 | cleanup := setupTempConfig(t) |
nothing calls this directly
no test coverage detected