func TestClusterCompletionFunc(t *testing.T) { … } func TestContextCompletionFunc(t *testing.T) { … } func TestUserCompletionFunc(t *testing.T) { … } func TestResourceTypeAndNameCompletionFuncOneArg(t *testing.T) { … } func TestResourceTypeAndNameCompletionFuncRepeating(t *testing.T) { … } func TestResourceTypeAndNameCompletionFuncJointForm(t *testing.T) { … } func TestResourceTypeAndNameCompletionFuncJointFormRepeating(t *testing.T) { … } func TestSpecifiedResourceTypeAndNameCompletionFuncNoArgs(t *testing.T) { … } func TestSpecifiedResourceTypeAndNameCompletionFuncOneArg(t *testing.T) { … } func TestSpecifiedResourceTypeAndNameCompletionFuncRepeating(t *testing.T) { … } func TestSpecifiedResourceTypeAndNameCompletionFuncJointFormOneArg(t *testing.T) { … } func TestSpecifiedResourceTypeAndNameCompletionFuncJointFormRepeating(t *testing.T) { … } func TestSpecifiedResourceTypeAndNameCompletionNoRepeatFuncOneArg(t *testing.T) { … } func TestSpecifiedResourceTypeAndNameCompletionNoRepeatFuncMultiArg(t *testing.T) { … } func TestSpecifiedResourceTypeAndNameCompletionNoRepeatFuncJointFormOneArg(t *testing.T) { … } func TestSpecifiedResourceTypeAndNameCompletionNoRepeatFuncJointFormMultiArg(t *testing.T) { … } func TestResourceNameCompletionFuncNoArgs(t *testing.T) { … } func TestResourceNameCompletionFuncTooManyArgs(t *testing.T) { … } func TestResourceNameCompletionFuncJointFormNoArgs(t *testing.T) { … } func TestPodResourceNameCompletionFuncNoArgsPodName(t *testing.T) { … } func TestPodResourceNameCompletionFuncNoArgsResources(t *testing.T) { … } func TestPodResourceNameCompletionFuncTooManyArgs(t *testing.T) { … } func TestPodResourceNameCompletionFuncJointFormNoArgs(t *testing.T) { … } func TestPodResourceNameCompletionFuncJointFormTooManyArgs(t *testing.T) { … } func TestResourceAndContainerNameCompletionFunc(t *testing.T) { … } func TestResourceAndPortCompletionFunc(t *testing.T) { … } func setMockFactory(config api.Config) { … } func prepareCompletionTest() (*cmdtesting.TestFactory, *cobra.Command) { … } func addResourceToFactory(tf *cmdtesting.TestFactory, obj runtime.Object) { … } func checkCompletion(t *testing.T, comps, expectedComps []string, directive, expectedDirective cobra.ShellCompDirective) { … } func getTestPod() *corev1.Pod { … } func getTestService() *corev1.Service { … }