(t *testing.T, cmd *cobra.Command)
| 375 | } |
| 376 | |
| 377 | func setShareLinkOutputJSON(t *testing.T, cmd *cobra.Command) { |
| 378 | t.Helper() |
| 379 | if cmd.Flags().Lookup(outputFlag) == nil { |
| 380 | cmd.Flags().String(outputFlag, "text", "") |
| 381 | } |
| 382 | if err := cmd.Flags().Set(outputFlag, "json"); err != nil { |
| 383 | t.Fatalf("set output: %v", err) |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | func decodeJSONOutput(t *testing.T, data []byte, out any) { |
| 388 | t.Helper() |
no outgoing calls
no test coverage detected