Skip to content

Commit

Permalink
gopls/internal/lsp/tests: eliminate the go1.18 summary file
Browse files Browse the repository at this point in the history
We can now assume a Go version >= 1.18.

Change-Id: I1faa4f9051f55a62fb2f4971f2006ca8f2dec494
Reviewed-on: https://go-review.googlesource.com/c/tools/+/526416
Reviewed-by: Alan Donovan <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Robert Findley <[email protected]>
  • Loading branch information
findleyr authored and gopherbot committed Sep 7, 2023
1 parent c6e4421 commit b0cdf01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
12 changes: 6 additions & 6 deletions gopls/internal/lsp/testdata/summary.txt.golden
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
-- summary --
CallHierarchyCount = 2
CodeLensCount = 5
CompletionsCount = 263
CompletionSnippetCount = 106
CompletionsCount = 264
CompletionSnippetCount = 115
UnimportedCompletionsCount = 5
DeepCompletionsCount = 5
FuzzyCompletionsCount = 8
RankedCompletionsCount = 164
RankedCompletionsCount = 174
CaseSensitiveCompletionsCount = 4
DiagnosticsCount = 23
FoldingRangesCount = 2
SemanticTokenCount = 3
SuggestedFixCount = 74
SuggestedFixCount = 80
MethodExtractionCount = 8
DefinitionsCount = 46
TypeDefinitionsCount = 18
HighlightsCount = 70
InlayHintsCount = 4
RenamesCount = 41
InlayHintsCount = 5
RenamesCount = 48
PrepareRenamesCount = 7
SignaturesCount = 33
LinksCount = 7
Expand Down
25 changes: 0 additions & 25 deletions gopls/internal/lsp/testdata/summary_go1.18.txt.golden

This file was deleted.

2 changes: 0 additions & 2 deletions gopls/internal/lsp/tests/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ var summaryFile = "summary.txt"
func init() {
if testenv.Go1Point() >= 21 {
summaryFile = "summary_go1.21.txt"
} else if testenv.Go1Point() >= 18 {
summaryFile = "summary_go1.18.txt"
}
}

Expand Down

0 comments on commit b0cdf01

Please sign in to comment.