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

Function TestShareLinkCommandsSupportStructuredOutput

cmd/share_link_json_test.go:361–375  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

359}
360
361func TestShareLinkCommandsSupportStructuredOutput(t *testing.T) {
362 for _, cmd := range []*cobra.Command{
363 shareLinkCreateCmd,
364 shareLinkListCmd,
365 shareListLinksCmd,
366 shareLinkInfoCmd,
367 shareLinkUpdateCmd,
368 shareLinkRevokeCmd,
369 shareLinkDownloadCmd,
370 } {
371 if !commandSupportsStructuredOutput(cmd) {
372 t.Fatalf("%s should support structured output", cmd.CommandPath())
373 }
374 }
375}
376
377func setShareLinkOutputJSON(t *testing.T, cmd *cobra.Command) {
378 t.Helper()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected