diff --git a/parser/rule_parser_test.go b/parser/rule_parser_test.go index 1dee483c..92e73dde 100644 --- a/parser/rule_parser_test.go +++ b/parser/rule_parser_test.go @@ -146,6 +146,7 @@ func TestLoadRules(t *testing.T) { }, }, }, + When: engine.ConditionEntry{}, }, }, }, @@ -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{}, }, }, }, @@ -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{}, }, }, }, @@ -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{}, }, }, }, @@ -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{}, }, }, }, @@ -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{}, }, }, }, @@ -461,6 +467,7 @@ func TestLoadRules(t *testing.T) { Description: "", }, Perform: engine.Perform{Message: engine.Message{Text: &allGoOrJsonFiles, Links: []konveyor.Link{}}}, + When: engine.ConditionEntry{}, }, }, }, @@ -506,6 +513,7 @@ func TestLoadRules(t *testing.T) { }, Tag: []string{"test"}, }, + When: engine.ConditionEntry{}, }, }, }, @@ -557,6 +565,7 @@ func TestLoadRules(t *testing.T) { Perform: engine.Perform{ Tag: []string{"test"}, }, + When: engine.ConditionEntry{}, }, }, }, @@ -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{}, }, }, }, @@ -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{}, }, }, }, @@ -668,6 +679,7 @@ func TestLoadRules(t *testing.T) { }, }, }, + When: engine.ConditionEntry{}, }, }, },