MCPcopy Create free account
hub / github.com/commander-cli/commander / Test_getExecutor

Function Test_getExecutor

pkg/runtime/runner_test.go:28–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func Test_getExecutor(t *testing.T) {
29 r := Runner{
30 Nodes: getExampleNodes(),
31 }
32
33 exec := r.getExecutor("ssh")
34 assert.IsType(t, SSHExecutor{}, exec)
35 exec = r.getExecutor("local")
36 assert.IsType(t, LocalExecutor{}, exec)
37 exec = r.getExecutor("docker")
38 assert.IsType(t, DockerExecutor{}, exec)
39}
40
41func getExampleNodes() []Node {
42 n1 := Node{

Callers

nothing calls this directly

Calls 2

getExecutorMethod · 0.95
getExampleNodesFunction · 0.85

Tested by

no test coverage detected