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

Function TestCompletionCommand_Fish

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

Source from the content-addressed store, hash-verified

44}
45
46func TestCompletionCommand_Fish(t *testing.T) {
47 rootCmd := &cobra.Command{Use: "gh"}
48 completionCmd := NewCompletionCommand()
49 rootCmd.AddCommand(completionCmd)
50
51 rootCmd.SetArgs([]string{"completion", "fish"})
52 err := rootCmd.Execute()
53
54 // Just verify no error - the actual script is generated by Cobra
55 require.NoError(t, err, "Fish completion generation should not error")
56}
57
58func TestCompletionCommand_PowerShell(t *testing.T) {
59 rootCmd := &cobra.Command{Use: "gh"}

Callers

nothing calls this directly

Calls 1

NewCompletionCommandFunction · 0.85

Tested by

no test coverage detected