(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestBuildMSYS2Command_WithoutMsvcEnvs(t *testing.T) { |
| 68 | var displayCmd string |
| 69 | executor := NewExecutor("", "make -j 4") |
| 70 | cmd := executor.buildMSYS2Command(&displayCmd) |
| 71 | |
| 72 | if displayCmd != executor.command { |
| 73 | t.Errorf("displayCmd should equal command when msvcEnvs is empty, got: %s", displayCmd) |
| 74 | } |
| 75 | if len(cmd.Args) < 3 { |
| 76 | t.Fatalf("expected at least 3 args, got: %v", cmd.Args) |
| 77 | } |
| 78 | if cmd.Args[2] != executor.command { |
| 79 | t.Errorf("bash command should equal command, got: %s", cmd.Args[2]) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | func TestBuildMSYS2Command_WithArgs(t *testing.T) { |
| 84 | var displayCmd string |
nothing calls this directly
no test coverage detected