Skip to content

Commit

Permalink
fix: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
femrtnz committed Sep 30, 2024
1 parent bd2bfda commit 7f44d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions pkg/printer/csv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 1 addition & 10 deletions pkg/printer/text_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f44d35

Please sign in to comment.