(t *testing.T)
| 124 | } |
| 125 | |
| 126 | func TestNewAliasListCommand_Run(t *testing.T) { |
| 127 | cleanup := setupTempConfigWithServers(t) |
| 128 | defer cleanup() |
| 129 | |
| 130 | cmd := NewAliasListCommand() |
| 131 | output := captureOutput(t, func() { |
| 132 | cmd.Run(cmd, []string{}) |
| 133 | }) |
| 134 | assert.Contains(t, output, "Alias: myserver") |
| 135 | assert.Contains(t, output, "192.168.1.1") |
| 136 | } |
| 137 | |
| 138 | func TestNewAliasListCommand_Run_EmptyConfig(t *testing.T) { |
| 139 | cleanup := setupTempConfig(t) |
nothing calls this directly
no test coverage detected