(t *testing.T)
| 219 | } |
| 220 | |
| 221 | func TestNewAliasSetCommand_Run_DuplicateAlias(t *testing.T) { |
| 222 | cleanup := setupTempConfigWithServers(t) |
| 223 | defer cleanup() |
| 224 | |
| 225 | cmd := NewAliasSetCommand() |
| 226 | _ = cmd.Flags().Set("target", "10.0.0.1") |
| 227 | // "myserver" is already used as an alias in the config |
| 228 | cmd.Run(cmd, []string{"myserver"}) |
| 229 | } |
| 230 | |
| 231 | // --- Unset command --- |
| 232 |
nothing calls this directly
no test coverage detected