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

Function initializeOperatorCmdOptions

pkg/cmd/operator_test.go:31–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29const cmdOperator = "operator"
30
31func initializeOperatorCmdOptions(t *testing.T) (*operatorCmdOptions, *cobra.Command, RootCmdOptions) {
32 t.Helper()
33
34 options, rootCmd := kamelTestPreAddCommandInit()
35 operatorCmdOptions := addTestOperatorCmd(*options, rootCmd)
36 kamelTestPostAddCommandInit(t, rootCmd, options)
37
38 return operatorCmdOptions, rootCmd, *options
39}
40
41func addTestOperatorCmd(options RootCmdOptions, rootCmd *cobra.Command) *operatorCmdOptions {
42 // add a testing version of operator Command

Callers 4

TestOperatorNoFlagFunction · 0.85

Calls 3

addTestOperatorCmdFunction · 0.85

Tested by

no test coverage detected