(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func initializeRunCmdOptionsWithOutput(t *testing.T) (*runCmdOptions, *cobra.Command, RootCmdOptions) { |
| 67 | t.Helper() |
| 68 | c := v1.NewCamelCatalog("default", defaults.DefaultRuntimeVersion) |
| 69 | c.Spec = v1.CamelCatalogSpec{Runtime: v1.RuntimeSpec{Provider: v1.RuntimeProviderPlainQuarkus, Version: defaults.DefaultRuntimeVersion}} |
| 70 | fakeClient, _ := internal.NewFakeClient(&c) |
| 71 | |
| 72 | options, rootCmd := kamelTestPreAddCommandInitWithClient(fakeClient) |
| 73 | runCmdOptions := addTestRunCmdWithOutput(*options, rootCmd) |
| 74 | kamelTestPostAddCommandInit(t, rootCmd, options) |
| 75 | |
| 76 | return runCmdOptions, rootCmd, *options |
| 77 | } |
| 78 | |
| 79 | func addTestRunCmd(options RootCmdOptions, rootCmd *cobra.Command) *runCmdOptions { |
| 80 | // add a testing version of run Command |
no test coverage detected