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