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

Function TestNewAliasSetCommand_Run

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

Source from the content-addressed store, hash-verified

201}
202
203func TestNewAliasSetCommand_Run(t *testing.T) {
204 cleanup := setupTempConfigWithServers(t)
205 defer cleanup()
206
207 cmd := NewAliasSetCommand()
208 _ = cmd.Flags().Set("target", "10.0.0.1")
209 cmd.Run(cmd, []string{"newalias"})
210}
211
212func TestNewAliasSetCommand_Run_NoMatchingIP(t *testing.T) {
213 cleanup := setupTempConfigWithServers(t)

Callers

nothing calls this directly

Calls 2

NewAliasSetCommandFunction · 0.85

Tested by

no test coverage detected