(client client.Client)
| 37 | } |
| 38 | |
| 39 | func kamelTestPreAddCommandInitWithClient(client client.Client) (*RootCmdOptions, *cobra.Command) { |
| 40 | options := RootCmdOptions{ |
| 41 | Context: context.Background(), |
| 42 | Flags: viper.New(), |
| 43 | _client: client, |
| 44 | } |
| 45 | rootCmd := kamelPreAddCommandInit(&options) |
| 46 | rootCmd.Run = EmptyRun |
| 47 | return &options, rootCmd |
| 48 | } |
| 49 | |
| 50 | func kamelTestPreAddCommandInit() (*RootCmdOptions, *cobra.Command) { |
| 51 | fakeClient, _ := internal.NewFakeClient() |
no test coverage detected