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

Function TestNewAliasSetCommand_Run_NoMatchingIP

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

Source from the content-addressed store, hash-verified

210}
211
212func TestNewAliasSetCommand_Run_NoMatchingIP(t *testing.T) {
213 cleanup := setupTempConfigWithServers(t)
214 defer cleanup()
215
216 cmd := NewAliasSetCommand()
217 _ = cmd.Flags().Set("target", "99.99.99.99")
218 cmd.Run(cmd, []string{"nope"})
219}
220
221func TestNewAliasSetCommand_Run_DuplicateAlias(t *testing.T) {
222 cleanup := setupTempConfigWithServers(t)

Callers

nothing calls this directly

Calls 2

NewAliasSetCommandFunction · 0.85

Tested by

no test coverage detected