(stdout, stderr *bytes.Buffer)
| 535 | } |
| 536 | |
| 537 | func newRelocationTestCommand(stdout, stderr *bytes.Buffer) *cobra.Command { |
| 538 | cmd := &cobra.Command{} |
| 539 | cmd.Flags().String(outputFlag, string(output.FormatText), "") |
| 540 | cmd.Flags().String("if-exists", relocationIfExistsFail, "") |
| 541 | if err := cmd.Flags().Set(outputFlag, string(output.FormatJSON)); err != nil { |
| 542 | panic(err) |
| 543 | } |
| 544 | if stdout != nil { |
| 545 | cmd.SetOut(stdout) |
| 546 | } |
| 547 | if stderr != nil { |
| 548 | cmd.SetErr(stderr) |
| 549 | } |
| 550 | return cmd |
| 551 | } |
| 552 | |
| 553 | type relocationOutput struct { |
| 554 | Input map[string]any `json:"input"` |
no outgoing calls
no test coverage detected