(t *testing.T)
| 25 | } |
| 26 | |
| 27 | func 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 | |
| 36 | func TestDetectShell_Unix(t *testing.T) { |
| 37 | if runtime.GOOS == "windows" { |
nothing calls this directly
no test coverage detected