(t *testing.T)
| 21 | ) |
| 22 | |
| 23 | func TestZshCompletionWithActiveHelp(t *testing.T) { |
| 24 | c := &Command{Use: "c", Run: emptyRun} |
| 25 | |
| 26 | buf := new(bytes.Buffer) |
| 27 | assertNoErr(t, c.GenZshCompletion(buf)) |
| 28 | output := buf.String() |
| 29 | |
| 30 | // check that active help is not being disabled |
| 31 | activeHelpVar := activeHelpEnvVar(c.Name()) |
| 32 | checkOmit(t, output, fmt.Sprintf("%s=0", activeHelpVar)) |
| 33 | } |
nothing calls this directly
no test coverage detected