Commit 9da4f7b
gopls/internal/test/integration/completion: make test go1.26-robust
As the API of the testing package evolves, TestFuzzFunc, which uses
it to exercise completions, keeps breaking. This CL introduces
optional items to make it easier to fix the tests as it breaks
each time the API evolves.
CL 696399 added (*testing.F).Artifact to go1.26, causing the test
to break spuriously. See also golang/go#74987, about the same
issue when go1.25 added the Attr method.
Updates golang/go#74987
Change-Id: I9653dae29bff8a976f7a4d9eb4b785b4b28b05f5
Reviewed-on: https://go-review.googlesource.com/c/tools/+/702077
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>1 parent 4409ea7 commit 9da4f7b
File tree
2 files changed
+25
-1
lines changed- gopls/internal/test/integration/completion
2 files changed
+25
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
261 | 268 | | |
262 | 269 | | |
263 | 270 | | |
| |||
274 | 281 | | |
275 | 282 | | |
276 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
277 | 297 | | |
278 | 298 | | |
279 | 299 | | |
| |||
0 commit comments