blob: 2286dee969455d2be960afeda37be6235b1526d9 [file] [log] [blame]
Josh Bleecher Snyder833a0f82025-04-24 18:39:36 +00001Test that all issues across multiple commits are reported
2
3-- a.go --
4package main
5
6-- .commit --
7Initial commit
8
9-- b.go --
10package main
11
12import "sync"
13
14var x sync.Mutex
15var y = x
16
17-- .commit --
18Add another file
19
20-- c_test.go --
21package main
22
23import "testing"
24
25func TestX(t *testing.T) {
26 t.FailNow()
27}
28
29-- .commit --
30Add a failing test
31
32-- d.go --
33package main
34
35-- .commit --
36Add yet another file
37
38-- .run_test --
39Test regressions detected between initial commit (a4fd3c2166b35e02a2cde466880e45aea6e6212e) and HEAD:
40
411: sketch.dev.TestX: New test is failing
42
43
44Gopls check issues detected:
45
461. /PATH/TO/REPO/b.go:6:9-10: variable declaration copies lock value to y: sync.Mutex
47
48IMPORTANT: Only fix new gopls check issues in parts of the code that you have already edited. Do not change existing code that was not part of your current edits.
49
50
51Please fix before proceeding.