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

Function TestNewAliasSetCommand_Run_DuplicateAlias

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

Source from the content-addressed store, hash-verified

219}
220
221func 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

Callers

nothing calls this directly

Calls 2

NewAliasSetCommandFunction · 0.85

Tested by

no test coverage detected