MCPcopy Create free account
hub / github.com/compozy/agh / TestNewDocCommand_NotInHelp

Function TestNewDocCommand_NotInHelp

internal/cli/doc_test.go:21–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

19}
20
21func 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
31func TestNewDocCommand_DefaultOutputDir(t *testing.T) {
32 t.Parallel()

Callers

nothing calls this directly

Calls 2

newRootCommandFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected