]> Cypherpunks repositories - gostls13.git/commit
cmd/cover: remove use of diff in cover_test.go
authorRob Pike <r@golang.org>
Thu, 14 Jun 2018 01:09:28 +0000 (11:09 +1000)
committerRob Pike <r@golang.org>
Thu, 14 Jun 2018 21:41:38 +0000 (21:41 +0000)
commit5fdacfa89f871888d6f8fde726b8f95f11e674d6
tree59b5502e5bd0edc4df3520de5e61e482e879daa2
parent26727b84d92db09843175a945b93ad46ff7d0a53
cmd/cover: remove use of diff in cover_test.go

It's non-portable, and the test isn't hard to write without diff.
It still produces helpful output in case of trouble:

--- FAIL: TestCoverHTML (0.75s)
    cover_test.go:325: line 4 differs: got:
         case &lt;-ch:<span class="cov0" title="0"></span>
        want:
         case &lt;-ch:<span class="cov0" xitle="0"></span>

This makes the test operating-system independent.

Change-Id: Iff35f00cb76ba89bc1b93db01c6f994e74341f4a
Reviewed-on: https://go-review.googlesource.com/118795
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/cover/cover_test.go