]> Cypherpunks repositories - gostls13.git/commit
cmd/cover: fix sorting of profile segment boundaries, again
authorDavid Symonds <dsymonds@golang.org>
Thu, 7 Jun 2018 10:44:17 +0000 (20:44 +1000)
committerDavid Symonds <dsymonds@golang.org>
Thu, 7 Jun 2018 22:47:53 +0000 (22:47 +0000)
commitaadaec5045d1b37f9ca7111866a26b5149fec78f
tree843d30c70f59cffa0d010567ecc5f3cbffa6e624
parentd8a1465ca8d5c27215e5bdd2d776af743f74b928
cmd/cover: fix sorting of profile segment boundaries, again

This is a refinement of CL 114855, which fixed the empty clause case,
but broke some other cases where segment boundaries can coincide
for other reasons.

Fixes #25767.

Change-Id: I2a387c83f9d651c8358f3e11b03f6167af0eb8bf
Reviewed-on: https://go-review.googlesource.com/116976
Run-TryBot: David Symonds <dsymonds@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/cover/profile.go
src/cmd/cover/testdata/html/html.go
src/cmd/cover/testdata/html/html.golden
src/cmd/cover/testdata/html/html_test.go