(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func 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 | |
| 41 | func getExampleNodes() []Node { |
| 42 | n1 := Node{ |
nothing calls this directly
no test coverage detected