From 1777c190797fed5f0bbad9df83c0544323e597cc Mon Sep 17 00:00:00 2001 From: Brian Pursley Date: Tue, 4 Feb 2020 10:16:06 -0500 Subject: [PATCH] Fixed code formatting issues discovered by verify-gofmt Kubernetes-commit: 2d21f16c38e704eaaa42d7d583ddd103c16d0d6b --- pkg/cmd/plugin/plugin_test.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pkg/cmd/plugin/plugin_test.go b/pkg/cmd/plugin/plugin_test.go index 1a1a813e..013fe7f1 100644 --- a/pkg/cmd/plugin/plugin_test.go +++ b/pkg/cmd/plugin/plugin_test.go @@ -101,31 +101,31 @@ func TestPluginPathsAreValid(t *testing.T) { expectOut string }{ { - name: "ensure no plugins found if no files begin with kubectl- prefix", - pluginPaths: []string{tempDir}, - verifier: newFakePluginPathVerifier(), - pluginFile: func() (*os.File, error) { + name: "ensure no plugins found if no files begin with kubectl- prefix", + pluginPaths: []string{tempDir}, + verifier: newFakePluginPathVerifier(), + pluginFile: func() (*os.File, error) { return ioutil.TempFile(tempDir, "notkubectl-") }, - expectErr: "error: unable to find any kubectl plugins in your PATH\n", + expectErr: "error: unable to find any kubectl plugins in your PATH\n", }, { - name: "ensure de-duplicated plugin-paths slice", - pluginPaths: []string{tempDir, tempDir}, - verifier: newFakePluginPathVerifier(), - pluginFile: func() (*os.File, error) { + name: "ensure de-duplicated plugin-paths slice", + pluginPaths: []string{tempDir, tempDir}, + verifier: newFakePluginPathVerifier(), + pluginFile: func() (*os.File, error) { return ioutil.TempFile(tempDir, "kubectl-") }, - expectOut: "The following compatible plugins are available:", + expectOut: "The following compatible plugins are available:", }, { - name: "ensure no errors when empty string or blank path are specified", - pluginPaths: []string{tempDir, "", " "}, - verifier: newFakePluginPathVerifier(), - pluginFile: func() (*os.File, error) { + name: "ensure no errors when empty string or blank path are specified", + pluginPaths: []string{tempDir, "", " "}, + verifier: newFakePluginPathVerifier(), + pluginFile: func() (*os.File, error) { return ioutil.TempFile(tempDir, "kubectl-") }, - expectOut: "The following compatible plugins are available:", + expectOut: "The following compatible plugins are available:", }, }