From d510a130b570459c9c8978ab3933ec38182b196c Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Fri, 29 May 2020 22:03:16 -0600 Subject: [PATCH] improved final test output --- test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test.go b/test.go index 8d2539e..a5134f6 100644 --- a/test.go +++ b/test.go @@ -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 }