]> Cypherpunks repositories - gostls13.git/commit
image/draw: fold TestClipWithNilMP into TestClip.
authorNigel Tao <nigeltao@golang.org>
Mon, 5 Jan 2015 05:08:40 +0000 (16:08 +1100)
committerNigel Tao <nigeltao@golang.org>
Wed, 14 Jan 2015 06:04:13 +0000 (06:04 +0000)
commit9785a3962ddd4528ee1d31838a645087d0cc82f9
tree1a7b5a97c6dcc15be76c41e79fdeb86b217f794e
parentf15c675fb436f8225903d46ec10a9f49c6eb5553
image/draw: fold TestClipWithNilMP into TestClip.

https://go-review.googlesource.com/#/c/1876/ introduced a new
TestClipWithNilMP test, along with a code change that fixed a panic,
but the existing TestClip test already contained almost enough machinery
to cover that bug.

There is a small code change in this CL, but it is a no-op: (*x).y is
equivalent to x.y for a pointer-typed x, but the latter is cleaner.

Change-Id: I79cf6952a4999bc4b91f0a8ec500acb108106e56
Reviewed-on: https://go-review.googlesource.com/2304
Reviewed-by: Dave Cheney <dave@cheney.net>
src/image/draw/clip_test.go
src/image/draw/draw.go