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

Function TestNewCachesCommand_Run_WithoutAlias

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

Source from the content-addressed store, hash-verified

305}
306
307func TestNewCachesCommand_Run_WithoutAlias(t *testing.T) {
308 cleanup := setupTempConfig(t)
309 defer cleanup()
310
311 cmd := NewCachesCommand()
312 _ = cmd.Flags().Set("ip", "10.0.0.1")
313 _ = cmd.Flags().Set("user", "admin")
314 _ = cmd.Flags().Set("port", "2222")
315 _ = cmd.Flags().Set("pwd", "pass123")
316
317 cmd.Run(cmd, []string{})
318}
319
320func TestNewUsersCommand_Run_DuplicateUser(t *testing.T) {
321 cleanup := setupTempConfig(t)

Callers

nothing calls this directly

Calls 2

setupTempConfigFunction · 0.70
NewCachesCommandFunction · 0.70

Tested by

no test coverage detected