(t *testing.T, initObjs ...runtime.Object)
| 33 | const cmdDebug = "debug" |
| 34 | |
| 35 | func initializeDebugCmdOptions(t *testing.T, initObjs ...runtime.Object) (*cobra.Command, *debugCmdOptions) { |
| 36 | t.Helper() |
| 37 | fakeClient, err := internal.NewFakeClient(initObjs...) |
| 38 | require.NoError(t, err) |
| 39 | options, rootCmd := kamelTestPreAddCommandInitWithClient(fakeClient) |
| 40 | options.Namespace = "default" |
| 41 | debugCmdOptions := addTestDebugCmd(*options, rootCmd) |
| 42 | kamelTestPostAddCommandInit(t, rootCmd, options) |
| 43 | |
| 44 | return rootCmd, debugCmdOptions |
| 45 | } |
| 46 | |
| 47 | func addTestDebugCmd(options RootCmdOptions, rootCmd *cobra.Command) *debugCmdOptions { |
| 48 | debugCmd, debugOptions := newCmdDebug(&options) |
no test coverage detected