TestSpec_PublicAPI_DetectShell validates DetectShell returns one of the documented ShellType values. Spec: "Detects the user's current shell"
(t *testing.T)
| 103 | // TestSpec_PublicAPI_DetectShell validates DetectShell returns one of the documented ShellType values. |
| 104 | // Spec: "Detects the user's current shell" |
| 105 | func TestSpec_PublicAPI_DetectShell(t *testing.T) { |
| 106 | shell := cli.DetectShell() |
| 107 | validShells := []cli.ShellType{cli.ShellBash, cli.ShellZsh, cli.ShellFish, cli.ShellPowerShell, cli.ShellUnknown} |
| 108 | assert.Contains(t, validShells, shell, "DetectShell should return one of the documented ShellType values") |
| 109 | } |
| 110 | |
| 111 | // TestSpec_PublicAPI_ValidEngineNames validates the documented function returns a non-empty list. |
| 112 | // Spec: "Returns the supported engine names for shell completion" |
nothing calls this directly
no test coverage detected