From 90c77c80fc4c467942c8594609b8e9bd03fd862a Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 30 Jan 2024 15:16:56 +0100 Subject: [PATCH] Add tests for successfull space replacement --- pkg/config/config_test.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 9a184d5..22dbbe1 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -95,6 +95,30 @@ func TestFromFlags(t *testing.T) { RejectKinds: map[string]struct{}{}, }, }, + { + []string{"-skip", "a, b, c"}, + Config{ + Files: []string{}, + KubernetesVersion: "master", + NumberOfWorkers: 4, + OutputFormat: "text", + SchemaLocations: nil, + SkipKinds: map[string]struct{}{"a": {}, "b": {}, "c": {}}, + RejectKinds: map[string]struct{}{}, + }, + }, + { + []string{"-skip", "a,b, c"}, + Config{ + Files: []string{}, + KubernetesVersion: "master", + NumberOfWorkers: 4, + OutputFormat: "text", + SchemaLocations: nil, + SkipKinds: map[string]struct{}{"a": {}, "b": {}, "c": {}}, + RejectKinds: map[string]struct{}{}, + }, + }, { []string{"-summary", "-verbose", "file1", "file2"}, Config{