(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestBuildMSYS2Command_WithArgs(t *testing.T) { |
| 84 | var displayCmd string |
| 85 | executor := NewExecutor("", "cmake", "--build", ".", "--config", "Release") |
| 86 | cmd := executor.buildMSYS2Command(&displayCmd) |
| 87 | |
| 88 | expected := "cmake --build . --config Release" |
| 89 | if displayCmd != expected { |
| 90 | t.Errorf("displayCmd = %q, want %q", displayCmd, expected) |
| 91 | } |
| 92 | if len(cmd.Args) < 3 { |
| 93 | t.Fatalf("expected at least 3 args, got: %v", cmd.Args) |
| 94 | } |
| 95 | if cmd.Args[2] != expected { |
| 96 | t.Errorf("bash command = %q, want %q", cmd.Args[2], expected) |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | func TestBuildMSYS2Command_EnvNotOverridden(t *testing.T) { |
| 101 | var displayCmd string |
nothing calls this directly
no test coverage detected