(t *testing.T)
| 132 | } |
| 133 | |
| 134 | func TestNewSSHCommand_Run_WithUser(t *testing.T) { |
| 135 | cleanup := setupTempConfig(t) |
| 136 | defer cleanup() |
| 137 | |
| 138 | cmd := NewSSHCommand() |
| 139 | _ = cmd.Flags().Set("user", "testuser") |
| 140 | _ = cmd.Flags().Set("timeout", "100ms") |
| 141 | _ = cmd.Flags().Set("concurrency", "1") |
| 142 | cmd.Run(cmd, []string{"192.168.255.255"}) |
| 143 | } |
| 144 | |
| 145 | func TestNewSSHCommand_NoAliases(t *testing.T) { |
| 146 | cmd := NewSSHCommand() |
nothing calls this directly
no test coverage detected