Skip to content

Commit 282f095

Browse files
committed
duplicate test
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
1 parent 2028723 commit 282f095

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)