Move -count parameter to bench example and a little cleanup

This commit is contained in:
Joël Stemmer
2018-06-03 22:40:27 +01:00
parent b27aeca3e6
commit 56afb484ae
3 changed files with 3 additions and 5 deletions

View File

@ -84,7 +84,7 @@ func Parse(r io.Reader, pkgName string) (*Report, error) {
// sum of tests' time, use this if current test has no result line (when it is compiled test)
var testsTime time.Duration
// current test or benchmark
// current test
var cur string
// keep track if we've already seen a summary for the current test
@ -164,7 +164,6 @@ func Parse(r io.Reader, pkgName string) (*Report, error) {
}
// all tests in this package are finished
report.Packages = append(report.Packages, Package{
Name: matches[2],
Duration: parseSeconds(matches[3]),