// TestControlCommand makes sure that the correct subcommand is executed.
TestControlCommand makes sure that the correct subcommand is executed.
// TestControlCommand makes sure that the correct subcommand is executed .
func TestControlCommand(t *testing.T) {
	out := new(bytes.Buffer)
	RootCmd.SetOut(out)
	RootCmd.SetArgs([]string{"controls"})
	command, err := RootCmd.ExecuteC()
	if err != nil {
		t.Fatalf(`err = %v, want nil`, err)
	}
	want := "controls"
	if actual := command.Name(); actual != want {
		t.Fatalf(`command name = %q, want %q`, actual, want)
	}
}
func TestControlCommand ( t * testing . T ) { out := new ( bytes . Buffer ) RootCmd . SetOut ( out ) RootCmd . SetArgs ( [ ] string { " " } ) command , err := RootCmd . ExecuteC ( ) if err != nil { t . Fatalf ( `err = %v, want nil` , err ) } want := " " if actual := command . Name ( ) ; actual != want { t . Fatalf ( `command name = %q, want %q` , actual , want ) } }
TestControlCommand makes sure that the correct subcommand is executed.
TestControlCommand makes sure that the correct subcommand is executed .