(options RootCmdOptions, rootCmd *cobra.Command)
| 38 | } |
| 39 | |
| 40 | func addTestKitCreateCmd(options RootCmdOptions, rootCmd *cobra.Command) *kitCreateCommandOptions { |
| 41 | // add a testing version of kit create Command |
| 42 | kitCreateCmd, kitCreateOptions := newKitCreateCmd(&options) |
| 43 | kitCreateCmd.RunE = func(c *cobra.Command, args []string) error { |
| 44 | return nil |
| 45 | } |
| 46 | kitCreateCmd.PostRunE = func(c *cobra.Command, args []string) error { |
| 47 | return nil |
| 48 | } |
| 49 | kitCreateCmd.Args = ArbitraryArgs |
| 50 | rootCmd.AddCommand(kitCreateCmd) |
| 51 | return kitCreateOptions |
| 52 | } |
| 53 | |
| 54 | func TestKitCreateNonExistingFlag(t *testing.T) { |
| 55 | _, rootCmd, _ := initializeKitCreateCmdOptions(t) |
no test coverage detected