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

Function initializeBindCmdOptions

pkg/cmd/bind_test.go:32–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30const cmdBind = "bind"
31
32func initializeBindCmdOptions(t *testing.T) (*bindCmdOptions, *cobra.Command, RootCmdOptions) {
33 t.Helper()
34
35 fakeClient, _ := internal.NewFakeClient()
36
37 options, rootCmd := kamelTestPreAddCommandInitWithClient(fakeClient)
38 bindCmdOptions := addTestBindCmd(*options, rootCmd)
39 kamelTestPostAddCommandInit(t, rootCmd, options)
40
41 return bindCmdOptions, rootCmd, *options
42}
43
44func addTestBindCmd(options RootCmdOptions, rootCmd *cobra.Command) *bindCmdOptions {
45 // add a testing version of bind Command

Callers 12

TestBindOutputJSONFunction · 0.85
TestBindOutputYAMLFunction · 0.85
TestBindErrorHandlerNoneFunction · 0.85
TestBindErrorHandlerLogFunction · 0.85
TestBindTraitsFunction · 0.85
TestBindTraitsArrayFunction · 0.85
TestBindStepsFunction · 0.85

Calls 4

NewFakeClientFunction · 0.92
addTestBindCmdFunction · 0.85

Tested by

no test coverage detected