func runCmdNoWrap(command string, args ...string) (string, string, int, error) { … } // RunCmd is a utility function for kubeadm testing that executes a specified command func RunCmd(command string, args ...string) (string, string, int, error) { … } // RunSubCommand is a utility function for kubeadm testing that executes a Cobra sub command func RunSubCommand(t *testing.T, subCmds []*cobra.Command, command string, output io.Writer, args ...string) error { … } func getSubCommand(t *testing.T, subCmds []*cobra.Command, name string) *cobra.Command { … } // getKubeadmPath returns the contents of the environment variable KUBEADM_PATH // or panics if it's empty func getKubeadmPath() string { … }