MCPcopy Index your code
hub / github.com/docker/docker-agent / TestWindowsCmdExe_ComSpec

Function TestWindowsCmdExe_ComSpec

pkg/shellpath/shellpath_test.go:9–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestWindowsCmdExe_ComSpec(t *testing.T) {
10 t.Setenv("ComSpec", `C:\Custom\cmd.exe`)
11 got := WindowsCmdExe()
12 if got != `C:\Custom\cmd.exe` {
13 t.Errorf("WindowsCmdExe() = %q, want %q", got, `C:\Custom\cmd.exe`)
14 }
15}
16
17func TestWindowsCmdExe_SystemRoot(t *testing.T) {
18 t.Setenv("ComSpec", "")

Callers

nothing calls this directly

Calls 1

WindowsCmdExeFunction · 0.85

Tested by

no test coverage detected