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

Function TestValidateOutputFormatAllowsSupportedJSONCommand

cmd/output_test.go:159–167  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

157}
158
159func TestValidateOutputFormatAllowsSupportedJSONCommand(t *testing.T) {
160 cmd := &cobra.Command{}
161 cmd.Flags().String(outputFlag, "json", "")
162 enableStructuredOutput(cmd)
163
164 if err := validateOutputFormat(cmd); err != nil {
165 t.Fatalf("validateOutputFormat returned error: %v", err)
166 }
167}
168
169func TestValidateOutputFormatHonorsInheritedOutput(t *testing.T) {
170 root := &cobra.Command{}

Callers

nothing calls this directly

Calls 2

enableStructuredOutputFunction · 0.85
validateOutputFormatFunction · 0.85

Tested by

no test coverage detected