-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/test/integration: add a WriteGoSum run option
Working with go.sum files in integration tests was cumbersome, involving temporarily modifying the test to call env.DumpGoSum(...), then copying its output into the static go.sum file. For some tests, we may actually want to check in a fixed go.sum file, but the majority of the tests just want to avoid go.sum errors. To support this use case, add a new RunOption that writes the go.sum file before starting the test. Use this option in a test to illustrate its usage. Also, update DumpGoSum to use the faster "./..." pattern to create the go.sum output. "..." matches all modules, but we only care about the main module. Change-Id: I32cca005e10411033422cf8fee64cbd56e83f64c Reviewed-on: https://go-review.googlesource.com/c/tools/+/575700 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Donovan <adonovan@google.com>
- Loading branch information
Showing
4 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters