diff --git a/pkg/printer/csv_test.go b/pkg/printer/csv_test.go index fdc773bb..1634427a 100644 --- a/pkg/printer/csv_test.go +++ b/pkg/printer/csv_test.go @@ -54,16 +54,7 @@ func TestCSVPrinterPrint(t *testing.T) { version, _ := judge.NewVersion("1.2.3") labels := map[string]interface{}{"key1": "value1"} - results := []judge.Result{{ - Name: "Name", - Namespace: "Namespace", - Kind: "Kind", - ApiVersion: "1.2.3", - RuleSet: "Test", - ReplaceWith: "4.5.6", - Since: version, - Labels: labels, - }} + results := []judge.Result{{Name: "Name", Namespace: "Namespace", Kind: "Kind", ApiVersion: "1.2.3", RuleSet: "Test", ReplaceWith: "4.5.6", Since: version, Labels: labels}} if err := tp.Print(results, config.OptionalFlags{Labels: true}); err != nil { t.Fatalf("unexpected error: %v", err) diff --git a/pkg/printer/text_test.go b/pkg/printer/text_test.go index 3ef9c6ad..ca6662ef 100644 --- a/pkg/printer/text_test.go +++ b/pkg/printer/text_test.go @@ -54,16 +54,7 @@ func Test_textPrinter_Print(t *testing.T) { version, _ := judge.NewVersion("1.2.3") labels := map[string]interface{}{"key1": "value1"} - results := []judge.Result{{ - Name: "Name", - Namespace: "Namespace", - Kind: "Kind", - ApiVersion: "1.2.3", - RuleSet: "Test", - ReplaceWith: "4.5.6", - Since: version, - Labels: labels, - }} + results := []judge.Result{{Name: "Name", Namespace: "Namespace", Kind: "Kind", ApiVersion: "1.2.3", RuleSet: "Test", ReplaceWith: "4.5.6", Since: version, Labels: labels}} if err := tp.Print(results, config.OptionalFlags{Labels: true}); err != nil { t.Fatalf("unexpected error: %v", err)