]> Cypherpunks repositories - gostls13.git/commit
internal/testenv: add GoTool
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 9 Sep 2016 01:50:59 +0000 (18:50 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 10 Sep 2016 20:50:12 +0000 (20:50 +0000)
commitc564aebce99fb92b8dc26b203f4f32e4977c0aed
tree1f6d5c1661819989e7b69a70569e5a1899f284b2
parent3d562de8e38317a06fbf860e60f71c5e4f0ceab6
internal/testenv: add GoTool

GoToolPath requires a *testing.T to handle errors.
GoTool provides a variant that returns errors
for clients without a *testing.T,
such as that found in CL 27811.

Change-Id: I7ac8b7ec9d472894c37223c5f7b121ec823e7f61
Reviewed-on: https://go-review.googlesource.com/28787
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/internal/testenv/testenv.go