blob: d42ee702d19a9a174bfc0448a8c014643cc9b592 [file] [log] [blame]
Josh Bleecher Snyderffecb1e2025-04-28 18:59:14 +00001Tests related files identification based on historical co-occurrence
2
3-- a.go --
4package main
5
6func a() {}
7
8-- b.go --
9package main
10
11func b() {}
12
13-- c.go --
14package main
15
16func c() {}
17
18-- p.go --
19package p
20
21func d() {}
22
23-- .commit --
24Add functions to a.go and b.go
25
26-- a.go --
27package main
28
29func a() {
30 // Update 1
31}
32
33-- b.go --
34package main
35
36func b() {
37 // Update 1
38}
39
40-- .commit --
41Add functions to a.go and b.go again
42
43-- a.go --
44package main
45
46func a() {
47 // Update 2
48}
49
50-- b.go --
51package main
52
53func b() {
54 // Update 2
55}
56
57-- .commit --
58Add functions to a.go and c.go
59
60-- a.go --
61package main
62
63func a() {
64 // Update 3
65}
66
67-- c.go --
68package main
69
70func c() {
71 // Update 1
72}
73
74-- .commit --
75Update file a.go only
76
77-- a.go --
78package main
79
80func a() {
81 x := 42 // new gopls issue to view mixed info/error lines
82}
83
Josh Bleecher Snydercf191902025-06-04 18:18:40 +000084-- .commit --
85Update file a.go only (again)
86
Josh Bleecher Snyderffecb1e2025-04-28 18:59:14 +000087-- .run_test --
88# Info
89
90Potentially related files:
91
Josh Bleecher Snydercf191902025-06-04 18:18:40 +000092- p.go (30%)
Josh Bleecher Snyderffecb1e2025-04-28 18:59:14 +000093
94These files have historically changed with the files you have modified. Consider whether they require updates as well.
95
96
97# Errors
98
99Gopls check issues detected:
100
1011. /PATH/TO/REPO/a.go:4:5-6: declared and not used: x
102
103IMPORTANT: 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.
104
105
106Please fix before proceeding.