MCPcopy Create free account
hub / github.com/apache/camel-k / kamelTestPreAddCommandInitWithClient

Function kamelTestPreAddCommandInitWithClient

pkg/cmd/root_test.go:39–48  ·  view source on GitHub ↗
(client client.Client)

Source from the content-addressed store, hash-verified

37}
38
39func 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
50func kamelTestPreAddCommandInit() (*RootCmdOptions, *cobra.Command) {
51 fakeClient, _ := internal.NewFakeClient()

Calls 1

kamelPreAddCommandInitFunction · 0.85

Tested by

no test coverage detected