MCPcopy Create free account
hub / github.com/dropbox/dbxcli / TestJSONHelpCommandSubtree

Function TestJSONHelpCommandSubtree

cmd/help_json_test.go:129–136  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

127}
128
129func TestJSONHelpCommandSubtree(t *testing.T) {
130 stdout, stderr, err := executeJSONHelpTestRoot(t, []string{"team", "--help", "--output=json"})
131 if err != nil {
132 t.Fatalf("Execute returned error: %v\nstderr: %s", err, stderr)
133 }
134 got := decodeJSONHelpOutput(t, stdout)
135 assertJSONHelpResultPaths(t, got, []string{"team", "team add-member", "team info"})
136}
137
138func TestJSONHelpRealRootManifestIncludesPublicCommands(t *testing.T) {
139 RootCmd.InitDefaultHelpCmd()

Callers

nothing calls this directly

Calls 3

executeJSONHelpTestRootFunction · 0.85
decodeJSONHelpOutputFunction · 0.85

Tested by

no test coverage detected