-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/regtest/marker: port half of the suggestedfix markers
Port the fillstruct and self_assignment suggestedfix marker tests. The fillstruct marker test in particular had incredibly verbose golden content, which made the tests very difficult to read. To mitigate this, introduce a new 'codeactionedit' marker which only stores edits in the golden directory, rather than complete file content. Additionally, narrow the unified diff to have no edges, for brevity. Since none of the fillstruct tests require multi-line ranges, use a single location for the range. Furthermore, standardize on putting locations before action kind in code action markers. This is more consistent with other markers. For golang/go#54845 Change-Id: Id5d713b77fa751bfe8be473b19304376bc3bb139 Reviewed-on: https://go-review.googlesource.com/c/tools/+/539655 Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
- Loading branch information
Showing
51 changed files
with
863 additions
and
1,611 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.