blob: 5c741cee556c256cb7f0a723133a72bddb21049f [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 --
Josh Bleecher Snyderffecb1e2025-04-28 18:59:14 +000039# Errors
40
Josh Bleecher Snyder2fde4652025-05-01 17:50:34 -070041Test regressions detected between initial commit (INITIAL_COMMIT_HASH) and HEAD:
Josh Bleecher Snyder833a0f82025-04-24 18:39:36 +000042
431: sketch.dev.TestX: New test is failing
44
45
46Gopls check issues detected:
47
481. /PATH/TO/REPO/b.go:6:9-10: variable declaration copies lock value to y: sync.Mutex
49
50IMPORTANT: 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.
51
52
53Please fix before proceeding.