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

Function TestValidateOutputFormatRejectsUnsupportedJSONCommand

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

Source from the content-addressed store, hash-verified

147}
148
149func TestValidateOutputFormatRejectsUnsupportedJSONCommand(t *testing.T) {
150 cmd := &cobra.Command{}
151 cmd.Flags().String(outputFlag, "json", "")
152
153 err := validateOutputFormat(cmd)
154 if !errors.Is(err, output.ErrStructuredOutputUnsupported) {
155 t.Fatalf("error = %v, want ErrStructuredOutputUnsupported", err)
156 }
157}
158
159func TestValidateOutputFormatAllowsSupportedJSONCommand(t *testing.T) {
160 cmd := &cobra.Command{}

Callers

nothing calls this directly

Calls 1

validateOutputFormatFunction · 0.85

Tested by

no test coverage detected