(t *testing.T)
| 359 | } |
| 360 | |
| 361 | func 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 | |
| 377 | func setShareLinkOutputJSON(t *testing.T, cmd *cobra.Command) { |
| 378 | t.Helper() |
nothing calls this directly
no test coverage detected