Skip to content

Commit

Permalink
internal/lsp: add inlay hints count to test summary
Browse files Browse the repository at this point in the history
Change-Id: Ia74f4a43a114715a6011405bf70f9dfa269c3318
Reviewed-on: https://go-review.googlesource.com/c/tools/+/411901
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
  • Loading branch information
suzmue committed Jun 14, 2022
1 parent c15c045 commit ebc084a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/lsp/testdata/summary.txt.golden
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ MethodExtractionCount = 6
DefinitionsCount = 95
TypeDefinitionsCount = 18
HighlightsCount = 69
InlayHintsCount = 4
ReferencesCount = 27
RenamesCount = 41
PrepareRenamesCount = 7
Expand Down
1 change: 1 addition & 0 deletions internal/lsp/testdata/summary_go1.18.txt.golden
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ MethodExtractionCount = 6
DefinitionsCount = 108
TypeDefinitionsCount = 18
HighlightsCount = 69
InlayHintsCount = 4
ReferencesCount = 27
RenamesCount = 48
PrepareRenamesCount = 7
Expand Down
1 change: 1 addition & 0 deletions internal/lsp/tests/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@ func checkData(t *testing.T, data *Data) {
fmt.Fprintf(buf, "DefinitionsCount = %v\n", definitionCount)
fmt.Fprintf(buf, "TypeDefinitionsCount = %v\n", typeDefinitionCount)
fmt.Fprintf(buf, "HighlightsCount = %v\n", len(data.Highlights))
fmt.Fprintf(buf, "InlayHintsCount = %v\n", len(data.InlayHints))
fmt.Fprintf(buf, "ReferencesCount = %v\n", len(data.References))
fmt.Fprintf(buf, "RenamesCount = %v\n", len(data.Renames))
fmt.Fprintf(buf, "PrepareRenamesCount = %v\n", len(data.PrepareRenames))
Expand Down

0 comments on commit ebc084a

Please sign in to comment.