Skip to content

Commit 1f7888f

Browse files
committed
fix: improve test formatting
1 parent 439fea6 commit 1f7888f

File tree

1 file changed

+12
-47
lines changed

1 file changed

+12
-47
lines changed

pkg/skaffold/config/util_test.go

+12-47
Original file line numberDiff line numberDiff line change
@@ -306,53 +306,18 @@ func TestIsImageLoadingRequired(t *testing.T) {
306306
cfg *ContextConfig
307307
expected bool
308308
}{
309-
{
310-
cfg: &ContextConfig{Kubecontext: "kind-other"},
311-
expected: true,
312-
},
313-
{
314-
315-
cfg: &ContextConfig{Kubecontext: "kind-other", KindDisableLoad: util.BoolPtr(true)},
316-
expected: false,
317-
},
318-
{
319-
cfg: &ContextConfig{Kubecontext: "kind@kind"},
320-
expected: true,
321-
},
322-
{
323-
cfg: &ContextConfig{Kubecontext: "k3d-k3s-default"},
324-
expected: true,
325-
},
326-
{
327-
cfg: &ContextConfig{Kubecontext: "k3d-k3s-default", K3dDisableLoad: util.BoolPtr(true)},
328-
expected: false,
329-
},
330-
{
331-
cfg: &ContextConfig{Kubecontext: "docker-for-desktop"},
332-
expected: false,
333-
},
334-
{
335-
cfg: &ContextConfig{Kubecontext: "minikube"},
336-
expected: false,
337-
},
338-
{
339-
cfg: &ContextConfig{Kubecontext: "docker-desktop"},
340-
expected: false,
341-
},
342-
{
343-
cfg: &ContextConfig{Kubecontext: "anything-else"},
344-
expected: false},
345-
{
346-
cfg: &ContextConfig{Kubecontext: "kind@blah"},
347-
expected: false},
348-
{
349-
cfg: &ContextConfig{Kubecontext: "other-kind"},
350-
expected: false,
351-
},
352-
{
353-
cfg: &ContextConfig{Kubecontext: "not-k3d"},
354-
expected: false,
355-
},
309+
{cfg: &ContextConfig{Kubecontext: "kind-other"}, expected: true},
310+
{cfg: &ContextConfig{Kubecontext: "kind-other", KindDisableLoad: util.BoolPtr(true)}, expected: false},
311+
{cfg: &ContextConfig{Kubecontext: "kind@kind"}, expected: true},
312+
{cfg: &ContextConfig{Kubecontext: "k3d-k3s-default"}, expected: true},
313+
{cfg: &ContextConfig{Kubecontext: "k3d-k3s-default", K3dDisableLoad: util.BoolPtr(true)}, expected: false},
314+
{cfg: &ContextConfig{Kubecontext: "docker-for-desktop"}, expected: false},
315+
{cfg: &ContextConfig{Kubecontext: "minikube"}, expected: false},
316+
{cfg: &ContextConfig{Kubecontext: "docker-desktop"}, expected: false},
317+
{cfg: &ContextConfig{Kubecontext: "anything-else"}, expected: false},
318+
{cfg: &ContextConfig{Kubecontext: "kind@blah"}, expected: false},
319+
{cfg: &ContextConfig{Kubecontext: "other-kind"}, expected: false},
320+
{cfg: &ContextConfig{Kubecontext: "not-k3d"}, expected: false},
356321
}
357322
for _, test := range tests {
358323
testutil.Run(t, "", func(t *testutil.T) {

0 commit comments

Comments
 (0)