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

Function TestCompletionCommand_InstallSubcommand

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

Source from the content-addressed store, hash-verified

92}
93
94func TestCompletionCommand_InstallSubcommand(t *testing.T) {
95 cmd := NewCompletionCommand()
96
97 // Verify install subcommand exists
98 installCmd := findSubcommand(cmd, "install")
99 require.NotNil(t, installCmd, "install subcommand should exist")
100
101 assert.Equal(t, "install", installCmd.Name())
102 assert.Equal(t, "Install shell completion for the detected shell", installCmd.Short)
103 assert.Contains(t, installCmd.Long, "Automatically install shell completion")
104}
105
106func TestCompletionCommand_UninstallSubcommand(t *testing.T) {
107 cmd := NewCompletionCommand()

Callers

nothing calls this directly

Calls 2

NewCompletionCommandFunction · 0.85
findSubcommandFunction · 0.70

Tested by

no test coverage detected