[tools] gopls/internal/test/marker: add optional error to typedef marker

0 views
Skip to first unread message

Hongxiang Jiang (Gerrit)

unread,
Dec 16, 2025, 2:18:46 PM (14 hours ago) Dec 16
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Madeline Kalil, Go LUCI, Alan Donovan, golang-co...@googlegroups.com

Hongxiang Jiang submitted the change

Change information

Commit message:
gopls/internal/test/marker: add optional error to typedef marker

The typedef marker now accept optional input parameter error to
verify if the typedef returns an expected error from gopls.

Also migrate regression test for golang/go#60544 from integration
to marker test.

For golang/go#76723
Change-Id: Id5076268fb0458720693a30868e44e2cf0952395
Reviewed-by: Madeline Kalil <mka...@google.com>
Files:
  • M gopls/internal/golang/type_definition.go
  • M gopls/internal/test/integration/misc/definition_test.go
  • M gopls/internal/test/marker/doc.go
  • M gopls/internal/test/marker/marker_test.go
  • A gopls/internal/test/marker/testdata/typedef/issue60544.txt
  • M gopls/internal/test/marker/testdata/typedef/typedef.txt
Change size: M
Delta: 6 files changed, 50 insertions(+), 46 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Madeline Kalil
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: Id5076268fb0458720693a30868e44e2cf0952395
Gerrit-Change-Number: 728880
Gerrit-PatchSet: 4
Gerrit-Owner: Hongxiang Jiang <hxj...@golang.org>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Hongxiang Jiang <hxj...@golang.org>
Gerrit-Reviewer: Madeline Kalil <mka...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages