Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
  • Loading branch information
jmle committed Feb 21, 2024
1 parent 3b95df2 commit 105cc50
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions parser/rule_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func TestLoadRules(t *testing.T) {
},
},
},
When: engine.ConditionEntry{},
},
},
},
Expand Down Expand Up @@ -183,6 +184,7 @@ func TestLoadRules(t *testing.T) {
Category: &konveyor.Potential,
},
Perform: engine.Perform{Message: engine.Message{Text: &allGoFiles, Links: []konveyor.Link{}}},
When: engine.ConditionEntry{},
},
},
},
Expand Down Expand Up @@ -256,6 +258,7 @@ func TestLoadRules(t *testing.T) {
Category: &konveyor.Potential,
},
Perform: engine.Perform{Message: engine.Message{Text: &allGoAndJsonFiles, Links: []konveyor.Link{}}},
When: engine.ConditionEntry{},
},
},
},
Expand Down Expand Up @@ -293,6 +296,7 @@ func TestLoadRules(t *testing.T) {
Category: &konveyor.Potential,
},
Perform: engine.Perform{Message: engine.Message{Text: &allGoOrJsonFiles, Links: []konveyor.Link{}}},
When: engine.ConditionEntry{},
},
},
},
Expand Down Expand Up @@ -330,6 +334,7 @@ func TestLoadRules(t *testing.T) {
Category: &konveyor.Potential,
},
Perform: engine.Perform{Message: engine.Message{Text: &allGoOrJsonFiles, Links: []konveyor.Link{}}},
When: engine.ConditionEntry{},
},
},
},
Expand Down Expand Up @@ -406,6 +411,7 @@ func TestLoadRules(t *testing.T) {
Category: &konveyor.Potential,
},
Perform: engine.Perform{Message: engine.Message{Text: &allGoOrJsonFiles, Links: []konveyor.Link{}}},
When: engine.ConditionEntry{},
},
},
},
Expand Down Expand Up @@ -461,6 +467,7 @@ func TestLoadRules(t *testing.T) {
Description: "",
},
Perform: engine.Perform{Message: engine.Message{Text: &allGoOrJsonFiles, Links: []konveyor.Link{}}},
When: engine.ConditionEntry{},
},
},
},
Expand Down Expand Up @@ -506,6 +513,7 @@ func TestLoadRules(t *testing.T) {
},
Tag: []string{"test"},
},
When: engine.ConditionEntry{},
},
},
},
Expand Down Expand Up @@ -557,6 +565,7 @@ func TestLoadRules(t *testing.T) {
Perform: engine.Perform{
Tag: []string{"test"},
},
When: engine.ConditionEntry{},
},
},
},
Expand Down Expand Up @@ -587,6 +596,7 @@ func TestLoadRules(t *testing.T) {
Category: &konveyor.Potential,
},
Perform: engine.Perform{Message: engine.Message{Text: &allGoFiles, Links: []konveyor.Link{}}},
When: engine.ConditionEntry{},
},
},
},
Expand All @@ -598,6 +608,7 @@ func TestLoadRules(t *testing.T) {
Category: &konveyor.Potential,
},
Perform: engine.Perform{Message: engine.Message{Text: &allGoFiles, Links: []konveyor.Link{}}},
When: engine.ConditionEntry{},
},
},
},
Expand Down Expand Up @@ -668,6 +679,7 @@ func TestLoadRules(t *testing.T) {
},
},
},
When: engine.ConditionEntry{},
},
},
},
Expand Down

0 comments on commit 105cc50

Please sign in to comment.