Important test case missing in the file cmd/completion/completion_test.go
Umair0343 opened this issue · 0 comments
Umair0343 commented
The existing test cases cover the basic functionality of the GetCompletionCmd function, including:
- Checking the properties of the returned cobra.Command.
- Verifying that the command behaves correctly when run with invalid arguments.
- Verifying that the command does not produce certain outputs when run with valid arguments.
However, there is one important aspect that is not currently being tested: the actual output of the command when run with valid arguments. Specifically, you could add a test case to verify that the command produces the expected autocompletion scripts for each shell type.