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

Function TestCompletionCommand_PowerShell

pkg/cli/completion_command_test.go:58–68  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

56}
57
58func TestCompletionCommand_PowerShell(t *testing.T) {
59 rootCmd := &cobra.Command{Use: "gh"}
60 completionCmd := NewCompletionCommand()
61 rootCmd.AddCommand(completionCmd)
62
63 rootCmd.SetArgs([]string{"completion", "powershell"})
64 err := rootCmd.Execute()
65
66 // Just verify no error - the actual script is generated by Cobra
67 require.NoError(t, err, "PowerShell completion generation should not error")
68}
69
70func TestCompletionCommand_InvalidShell(t *testing.T) {
71 rootCmd := &cobra.Command{Use: "gh"}

Callers

nothing calls this directly

Calls 1

NewCompletionCommandFunction · 0.85

Tested by

no test coverage detected