MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestNewAliasUnsetCommand_ArgsValidation

Function TestNewAliasUnsetCommand_ArgsValidation

cmd/alias/alias_test.go:243–254  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

241}
242
243func TestNewAliasUnsetCommand_ArgsValidation(t *testing.T) {
244 cmd := NewAliasUnsetCommand()
245
246 err := cmd.Args(cmd, []string{})
247 assert.Error(t, err)
248
249 err = cmd.Args(cmd, []string{"myalias"})
250 assert.NoError(t, err)
251
252 err = cmd.Args(cmd, []string{"a", "b"})
253 assert.Error(t, err)
254}
255
256func TestNewAliasUnsetCommand_Run(t *testing.T) {
257 cleanup := setupTempConfigWithServers(t)

Callers

nothing calls this directly

Calls 1

NewAliasUnsetCommandFunction · 0.85

Tested by

no test coverage detected