improved final test output

This commit is contained in:
Steven Polley 2020-05-29 22:03:16 -06:00
parent 4c4fba7609
commit d510a130b5
1 changed files with 7 additions and 1 deletions

View File

@ -71,7 +71,13 @@ func test(redirects []Redirect) error { //TBD: implement
}
wg.Wait()
fmt.Printf("\ndone tests.\n---------------------------------------------\nSummary:\n\n%s", summaryOutput)
fmt.Printf("\ndone tests.\n---------------------------------------------\n")
if len(summaryOutput) > 0 {
fmt.Printf("Summary:\n\n%s", summaryOutput)
} else {
fmt.Println("All redirect tests succeeded.")
}
return nil
}