(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestNewDocCommand_NotInHelp(t *testing.T) { |
| 22 | t.Parallel() |
| 23 | |
| 24 | root := newRootCommand(commandDeps{}) |
| 25 | help := root.UsageString() |
| 26 | if regexp.MustCompile(`(?m)^\s*doc\s+`).MatchString(help) { |
| 27 | t.Error("doc command should not appear in root help output") |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func TestNewDocCommand_DefaultOutputDir(t *testing.T) { |
| 32 | t.Parallel() |
nothing calls this directly
no test coverage detected