Skip to content

Commit 2d21f16

Browse files
committed
Fixed code formatting issues discovered by verify-gofmt
1 parent 97185e9 commit 2d21f16

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/plugin/plugin_test.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -101,31 +101,31 @@ func TestPluginPathsAreValid(t *testing.T) {
101101
expectOut string
102102
}{
103103
{
104-
name: "ensure no plugins found if no files begin with kubectl- prefix",
105-
pluginPaths: []string{tempDir},
106-
verifier: newFakePluginPathVerifier(),
107-
pluginFile: func() (*os.File, error) {
104+
name: "ensure no plugins found if no files begin with kubectl- prefix",
105+
pluginPaths: []string{tempDir},
106+
verifier: newFakePluginPathVerifier(),
107+
pluginFile: func() (*os.File, error) {
108108
return ioutil.TempFile(tempDir, "notkubectl-")
109109
},
110-
expectErr: "error: unable to find any kubectl plugins in your PATH\n",
110+
expectErr: "error: unable to find any kubectl plugins in your PATH\n",
111111
},
112112
{
113-
name: "ensure de-duplicated plugin-paths slice",
114-
pluginPaths: []string{tempDir, tempDir},
115-
verifier: newFakePluginPathVerifier(),
116-
pluginFile: func() (*os.File, error) {
113+
name: "ensure de-duplicated plugin-paths slice",
114+
pluginPaths: []string{tempDir, tempDir},
115+
verifier: newFakePluginPathVerifier(),
116+
pluginFile: func() (*os.File, error) {
117117
return ioutil.TempFile(tempDir, "kubectl-")
118118
},
119-
expectOut: "The following compatible plugins are available:",
119+
expectOut: "The following compatible plugins are available:",
120120
},
121121
{
122-
name: "ensure no errors when empty string or blank path are specified",
123-
pluginPaths: []string{tempDir, "", " "},
124-
verifier: newFakePluginPathVerifier(),
125-
pluginFile: func() (*os.File, error) {
122+
name: "ensure no errors when empty string or blank path are specified",
123+
pluginPaths: []string{tempDir, "", " "},
124+
verifier: newFakePluginPathVerifier(),
125+
pluginFile: func() (*os.File, error) {
126126
return ioutil.TempFile(tempDir, "kubectl-")
127127
},
128-
expectOut: "The following compatible plugins are available:",
128+
expectOut: "The following compatible plugins are available:",
129129
},
130130
}
131131

0 commit comments

Comments
 (0)