MCPcopy Create free account
hub / github.com/github/gh-aw / TestSpec_PublicAPI_DetectShell

Function TestSpec_PublicAPI_DetectShell

pkg/cli/spec_test.go:105–109  ·  view source on GitHub ↗

TestSpec_PublicAPI_DetectShell validates DetectShell returns one of the documented ShellType values. Spec: "Detects the user's current shell"

(t *testing.T)

Source from the content-addressed store, hash-verified

103// TestSpec_PublicAPI_DetectShell validates DetectShell returns one of the documented ShellType values.
104// Spec: "Detects the user's current shell"
105func 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"

Callers

nothing calls this directly

Calls 1

DetectShellFunction · 0.92

Tested by

no test coverage detected