()
| 276 | } |
| 277 | |
| 278 | func testRestoreCmd() (*cobra.Command, *bytes.Buffer) { |
| 279 | var stdout bytes.Buffer |
| 280 | cmd := &cobra.Command{Use: "restore"} |
| 281 | cmd.SetOut(&stdout) |
| 282 | cmd.Flags().BoolP("verbose", "v", false, "") |
| 283 | cmd.Flags().String(outputFlag, "text", "") |
| 284 | return cmd, &stdout |
| 285 | } |
| 286 | |
| 287 | func setRestoreOutputJSON(t *testing.T, cmd *cobra.Command) { |
| 288 | t.Helper() |
no outgoing calls
no test coverage detected