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

Function TestNewAliasSetCommand_ArgsValidation

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

Source from the content-addressed store, hash-verified

188}
189
190func 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
203func TestNewAliasSetCommand_Run(t *testing.T) {
204 cleanup := setupTempConfigWithServers(t)

Callers

nothing calls this directly

Calls 1

NewAliasSetCommandFunction · 0.85

Tested by

no test coverage detected