(t *testing.T)
| 1589 | } |
| 1590 | |
| 1591 | func TestCompleteNoDesCmdInZshScript(t *testing.T) { |
| 1592 | rootCmd := &Command{Use: "root", Args: NoArgs, Run: emptyRun} |
| 1593 | child := &Command{ |
| 1594 | Use: "child", |
| 1595 | ValidArgsFunction: validArgsFunc, |
| 1596 | Run: emptyRun, |
| 1597 | } |
| 1598 | rootCmd.AddCommand(child) |
| 1599 | |
| 1600 | buf := new(bytes.Buffer) |
| 1601 | assertNoErr(t, rootCmd.GenZshCompletionNoDesc(buf)) |
| 1602 | output := buf.String() |
| 1603 | |
| 1604 | check(t, output, ShellCompNoDescRequestCmd) |
| 1605 | } |
| 1606 | |
| 1607 | func TestCompleteCmdInZshScript(t *testing.T) { |
| 1608 | rootCmd := &Command{Use: "root", Args: NoArgs, Run: emptyRun} |
nothing calls this directly
no test coverage detected
searching dependent graphs…