MCPcopy Create free account
hub / github.com/celer-pkg/celer / TestBuildMSYS2Command_WithoutMsvcEnvs

Function TestBuildMSYS2Command_WithoutMsvcEnvs

pkgs/cmd/exec_windows_test.go:67–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

65}
66
67func 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
83func TestBuildMSYS2Command_WithArgs(t *testing.T) {
84 var displayCmd string

Callers

nothing calls this directly

Calls 2

NewExecutorFunction · 0.85
buildMSYS2CommandMethod · 0.80

Tested by

no test coverage detected