Skip to content

Commit 061338b

Browse files
committed
duplicate test
Signed-off-by: Tomasz Janiszewski <[email protected]>
1 parent b4382b5 commit 061338b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/templates/kubeconform/template_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ func TestSliceToMap(t *testing.T) {
2828
"pod": {},
2929
},
3030
},
31+
{
32+
name: "duplicate element",
33+
input: []string{"pod", "pod"},
34+
expected: map[string]struct{}{
35+
"pod": {},
36+
},
37+
},
3138
{
3239
name: "multiple elements",
3340
input: []string{"pod", "service", "deployment"},

0 commit comments

Comments
 (0)