Skip to content

Commit

Permalink
Don't crash if there's no root group
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Ekberg committed Nov 15, 2017
1 parent 23a2db1 commit 6219645
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ func SummarizeMetrics(w io.Writer, indent string, t time.Duration, metrics map[s

// Summarizes a dataset and returns whether the test run was considered a success.
func Summarize(w io.Writer, indent string, data SummaryData) {
SummarizeGroup(w, indent+" ", data.Root)
if data.Root != nil {
SummarizeGroup(w, indent+" ", data.Root)
}
SummarizeMetrics(w, indent+" ", data.Time, data.Metrics)
}

0 comments on commit 6219645

Please sign in to comment.