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

Function TestBuildMSYS2Command_EnvVars

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

Source from the content-addressed store, hash-verified

8)
9
10func TestBuildMSYS2Command_EnvVars(t *testing.T) {
11 var displayCmd string
12 executor := NewExecutor("", "make -j 4")
13 cmd := executor.buildMSYS2Command(&displayCmd)
14
15 found := map[string]bool{
16 "MSYSTEM=MINGW64": false,
17 "CHERE_INVOKING=1": false,
18 "MSYS=winsymlinks:nativestrict": false,
19 }
20 for _, env := range cmd.Env {
21 for key := range found {
22 if env == key {
23 found[key] = true
24 }
25 }
26 }
27 for key, ok := range found {
28 if !ok {
29 t.Errorf("missing env var: %s", key)
30 }
31 }
32}
33
34func TestBuildMSYS2Command_WithMsvcEnvs(t *testing.T) {
35 var displayCmd string

Callers

nothing calls this directly

Calls 2

NewExecutorFunction · 0.85
buildMSYS2CommandMethod · 0.80

Tested by

no test coverage detected