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

Function TestNewCachesCommand_Run

cmd/create/create_test.go:293–305  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

291}
292
293func TestNewCachesCommand_Run(t *testing.T) {
294 cleanup := setupTempConfig(t)
295 defer cleanup()
296
297 cmd := NewCachesCommand()
298 _ = cmd.Flags().Set("ip", "192.168.1.1")
299 _ = cmd.Flags().Set("user", "root")
300 _ = cmd.Flags().Set("port", "22")
301 _ = cmd.Flags().Set("pwd", "secret")
302 _ = cmd.Flags().Set("alias", "myserver")
303
304 cmd.Run(cmd, []string{})
305}
306
307func TestNewCachesCommand_Run_WithoutAlias(t *testing.T) {
308 cleanup := setupTempConfig(t)

Callers

nothing calls this directly

Calls 2

setupTempConfigFunction · 0.70
NewCachesCommandFunction · 0.70

Tested by

no test coverage detected