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

Function TestCompletionCommand_Zsh

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

Source from the content-addressed store, hash-verified

32}
33
34func TestCompletionCommand_Zsh(t *testing.T) {
35 rootCmd := &cobra.Command{Use: "gh"}
36 completionCmd := NewCompletionCommand()
37 rootCmd.AddCommand(completionCmd)
38
39 rootCmd.SetArgs([]string{"completion", "zsh"})
40 err := rootCmd.Execute()
41
42 // Just verify no error - the actual script is generated by Cobra
43 require.NoError(t, err, "Zsh completion generation should not error")
44}
45
46func TestCompletionCommand_Fish(t *testing.T) {
47 rootCmd := &cobra.Command{Use: "gh"}

Callers

nothing calls this directly

Calls 1

NewCompletionCommandFunction · 0.85

Tested by

no test coverage detected