(t *testing.T)
| 277 | } |
| 278 | |
| 279 | func TestBashCompletionNoActiveHelp(t *testing.T) { |
| 280 | c := &Command{Use: "c", Run: emptyRun} |
| 281 | |
| 282 | buf := new(bytes.Buffer) |
| 283 | assertNoErr(t, c.GenBashCompletion(buf)) |
| 284 | output := buf.String() |
| 285 | |
| 286 | // check that active help is being disabled |
| 287 | activeHelpVar := activeHelpEnvVar(c.Name()) |
| 288 | check(t, output, fmt.Sprintf("%s=0", activeHelpVar)) |
| 289 | } |
nothing calls this directly
no test coverage detected