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

Function TestWindowsCmdExe_Fallback

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

Source from the content-addressed store, hash-verified

25}
26
27func TestWindowsCmdExe_Fallback(t *testing.T) {
28 t.Setenv("ComSpec", "")
29 t.Setenv("SystemRoot", "")
30 got := WindowsCmdExe()
31 if got != "cmd.exe" {
32 t.Errorf("WindowsCmdExe() = %q, want %q", got, "cmd.exe")
33 }
34}
35
36func TestDetectShell_Unix(t *testing.T) {
37 if runtime.GOOS == "windows" {

Callers

nothing calls this directly

Calls 1

WindowsCmdExeFunction · 0.85

Tested by

no test coverage detected