(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func TestNewAliasSetCommand_Run(t *testing.T) { |
| 204 | cleanup := setupTempConfigWithServers(t) |
| 205 | defer cleanup() |
| 206 | |
| 207 | cmd := NewAliasSetCommand() |
| 208 | _ = cmd.Flags().Set("target", "10.0.0.1") |
| 209 | cmd.Run(cmd, []string{"newalias"}) |
| 210 | } |
| 211 | |
| 212 | func TestNewAliasSetCommand_Run_NoMatchingIP(t *testing.T) { |
| 213 | cleanup := setupTempConfigWithServers(t) |
nothing calls this directly
no test coverage detected