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

Function TestNewSSHCommand_Run_WithUser

cmd/ssh/ssh_test.go:134–143  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

132}
133
134func TestNewSSHCommand_Run_WithUser(t *testing.T) {
135 cleanup := setupTempConfig(t)
136 defer cleanup()
137
138 cmd := NewSSHCommand()
139 _ = cmd.Flags().Set("user", "testuser")
140 _ = cmd.Flags().Set("timeout", "100ms")
141 _ = cmd.Flags().Set("concurrency", "1")
142 cmd.Run(cmd, []string{"192.168.255.255"})
143}
144
145func TestNewSSHCommand_NoAliases(t *testing.T) {
146 cmd := NewSSHCommand()

Callers

nothing calls this directly

Calls 2

NewSSHCommandFunction · 0.85
setupTempConfigFunction · 0.70

Tested by

no test coverage detected