(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func TestDetectShell_Unix_Fallback(t *testing.T) { |
| 52 | if runtime.GOOS == "windows" { |
| 53 | t.Skip("Unix-only test") |
| 54 | } |
| 55 | |
| 56 | t.Setenv("SHELL", "") |
| 57 | shell, _ := DetectShell() |
| 58 | if shell != "/bin/sh" { |
| 59 | t.Errorf("DetectShell() shell = %q, want /bin/sh", shell) |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | func TestDefaultUnixShell(t *testing.T) { |
| 64 | t.Setenv("SHELL", "/usr/local/bin/fish") |
nothing calls this directly
no test coverage detected