Skip to content

Commit

Permalink
Replace with helper function call
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkoli committed Dec 21, 2024
1 parent 80fb9c1 commit e90087b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/reporter/stdout_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func PrintSingleGroupStdout(groupReport map[string][]Report) error {
totalSuccessCount += stdoutReport.Summary.Passed
totalFailureCount += stdoutReport.Summary.Failed
fmt.Println(stdoutReport.Text)
if group != "Passed" && group != "Failed" {
if checkGroupsForPassFail(group) {
fmt.Printf("Summary: %d succeeded, %d failed\n\n", stdoutReport.Summary.Passed, stdoutReport.Summary.Failed)
}
}
Expand All @@ -72,7 +72,7 @@ func PrintDoubleGroupStdout(groupReport map[string]map[string][]Report) error {
totalSuccessCount += stdoutReport.Summary.Passed
totalFailureCount += stdoutReport.Summary.Failed
fmt.Println(stdoutReport.Text)
if group != "Passed" && group != "Failed" && group2 != "Passed" && group2 != "Failed" {
if checkGroupsForPassFail(group, group2) {
fmt.Printf(" Summary: %d succeeded, %d failed\n\n", stdoutReport.Summary.Passed, stdoutReport.Summary.Failed)
}
}
Expand All @@ -98,7 +98,7 @@ func PrintTripleGroupStdout(groupReport map[string]map[string]map[string][]Repor
totalSuccessCount += stdoutReport.Summary.Passed
totalFailureCount += stdoutReport.Summary.Failed
fmt.Println(stdoutReport.Text)
if groupOne != "Passed" && groupOne != "Failed" && groupTwo != "Passed" && groupTwo != "Failed" && groupThree != "Passed" && groupThree != "Failed" {
if checkGroupsForPassFail(groupOne, groupTwo, groupThree) {
fmt.Printf(" Summary: %d succeeded, %d failed\n\n", stdoutReport.Summary.Passed, stdoutReport.Summary.Failed)
}
}
Expand Down

0 comments on commit e90087b

Please sign in to comment.