MCPcopy Index your code
hub / github.com/commander-cli/commander / createExecutor

Function createExecutor

pkg/runtime/ssh_executor_linux_test.go:19–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17var SSHTestEnv SSHExecutorTestEnv
18
19func createExecutor() SSHExecutor {
20 SSHTestEnv = SSHExecutorTestEnv{
21 Host: os.Getenv("COMMANDER_TEST_SSH_HOST"),
22 Pass: os.Getenv("COMMANDER_TEST_SSH_PASS"),
23 User: os.Getenv("COMMANDER_TEST_SSH_USER"),
24 IdentityFile: os.Getenv("COMMANDER_TEST_SSH_IDENTITY_FILE"),
25 }
26
27 s := SSHExecutor{
28 Host: SSHTestEnv.Host,
29 User: SSHTestEnv.User,
30 Password: SSHTestEnv.Pass,
31 IdentityFile: SSHTestEnv.IdentityFile,
32 }
33 return s
34}
35
36func Test_SSHExecutor(t *testing.T) {
37 if !isSSHTestsEnabled() {

Callers 3

Test_SSHExecutorFunction · 0.85
Test_SSHExecutor_WithDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected