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

Function TestBuildNativeCommand_EnvSet

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

Source from the content-addressed store, hash-verified

176}
177
178func TestBuildNativeCommand_EnvSet(t *testing.T) {
179 var displayCmd string
180 executor := NewExecutor("", "echo", "hello")
181 cmd := executor.buildNativeCommand(&displayCmd)
182
183 if len(cmd.Env) == 0 {
184 t.Error("expected cmd.Env to be set from os.Environ()")
185 }
186}

Callers

nothing calls this directly

Calls 3

NewExecutorFunction · 0.85
buildNativeCommandMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected