]> Cypherpunks repositories - gostls13.git/commit
internal/testenv: add MustHaveSource, rm HasSrc
authorKir Kolyshkin <kolyshkin@gmail.com>
Mon, 9 Sep 2024 18:04:13 +0000 (11:04 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 13 Sep 2024 16:56:48 +0000 (16:56 +0000)
commit4c0f0985337386e0c0a3aad09251d5ee7f2b145e
tree8964cf2329c36d17fc043212c05e3443e1b8eb53
parentf3c89e21a566a6c82cff3e4d4b30e21de22a84fa
internal/testenv: add MustHaveSource, rm HasSrc

All the users of HasSrc call t.Skip anyway, so let's move it to testenv.

Fix go/build to use MustHaveSource rather than MustHaveGoBuild where
appropriate.

Change-Id: I052bf96fd5a5780c1930da5b3a52b7a8dbebea46
Reviewed-on: https://go-review.googlesource.com/c/go/+/612057
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Tim King <taking@google.com>
Auto-Submit: Tim King <taking@google.com>
src/compress/gzip/issue14937_test.go
src/go/build/build_test.go
src/go/build/deps_test.go
src/go/internal/srcimporter/srcimporter_test.go
src/internal/testenv/testenv.go
src/net/http/http_test.go