(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func TestCompleteNoDesCmdInFishScript(t *testing.T) { |
| 27 | rootCmd := &Command{Use: "root", Args: NoArgs, Run: emptyRun} |
| 28 | child := &Command{ |
| 29 | Use: "child", |
| 30 | ValidArgsFunction: validArgsFunc, |
| 31 | Run: emptyRun, |
| 32 | } |
| 33 | rootCmd.AddCommand(child) |
| 34 | |
| 35 | buf := new(bytes.Buffer) |
| 36 | assertNoErr(t, rootCmd.GenFishCompletion(buf, false)) |
| 37 | output := buf.String() |
| 38 | |
| 39 | check(t, output, ShellCompNoDescRequestCmd) |
| 40 | } |
| 41 | |
| 42 | func TestCompleteCmdInFishScript(t *testing.T) { |
| 43 | rootCmd := &Command{Use: "root", Args: NoArgs, Run: emptyRun} |
nothing calls this directly
no test coverage detected