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

Function TestCompletionCommand_Bash

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

Source from the content-addressed store, hash-verified

20}
21
22func TestCompletionCommand_Bash(t *testing.T) {
23 rootCmd := &cobra.Command{Use: "gh"}
24 completionCmd := NewCompletionCommand()
25 rootCmd.AddCommand(completionCmd)
26
27 rootCmd.SetArgs([]string{"completion", "bash"})
28 err := rootCmd.Execute()
29
30 // Just verify no error - the actual script is generated by Cobra
31 require.NoError(t, err, "Bash completion generation should not error")
32}
33
34func TestCompletionCommand_Zsh(t *testing.T) {
35 rootCmd := &cobra.Command{Use: "gh"}

Callers

nothing calls this directly

Calls 1

NewCompletionCommandFunction · 0.85

Tested by

no test coverage detected