(t *testing.T)
| 188 | } |
| 189 | |
| 190 | func TestNewAliasSetCommand_ArgsValidation(t *testing.T) { |
| 191 | cmd := NewAliasSetCommand() |
| 192 | |
| 193 | err := cmd.Args(cmd, []string{}) |
| 194 | assert.Error(t, err) |
| 195 | |
| 196 | err = cmd.Args(cmd, []string{"myalias"}) |
| 197 | assert.NoError(t, err) |
| 198 | |
| 199 | err = cmd.Args(cmd, []string{"a", "b"}) |
| 200 | assert.Error(t, err) |
| 201 | } |
| 202 | |
| 203 | func TestNewAliasSetCommand_Run(t *testing.T) { |
| 204 | cleanup := setupTempConfigWithServers(t) |
nothing calls this directly
no test coverage detected