You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
testing: Helper line number has changed in 1.16 #44887
I just ran into this problem. I have been using a function runCase (see below) to make it easier to work with very large table tests. When a test spans thousands of lines it can be difficult to find the data for a specific failure. This runCase pattern has made it much easier to debug failing tests, and it no longer works due to this regression.
I notice this issue has been pushed out a couple patch releases. Please let me know if I can be of any help in restoring the old behaviour or testing a fix.
Activity
ianlancetaylor commentedon Mar 9, 2021
@gopherbot Please open backport to 1.16
In some cases
t.Helperseems to be ineffective. It's not critical but it's definitely annoying. We should fix it.gopherbot commentedon Mar 9, 2021
Backport issue(s) opened: #44888 (for 1.16).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases.
dnephin commentedon Mar 15, 2021
I just ran into this problem. I have been using a function
runCase(see below) to make it easier to work with very large table tests. When a test spans thousands of lines it can be difficult to find the data for a specific failure. ThisrunCasepattern has made it much easier to debug failing tests, and it no longer works due to this regression.I notice this issue has been pushed out a couple patch releases. Please let me know if I can be of any help in restoring the old behaviour or testing a fix.
Example use case:
testing: fix Helper line number change
gopherbot commentedon Mar 17, 2021
Change https://golang.org/cl/302469 mentions this issue:
testing: fix Helper line number changetesting: fix Helper line number change
testing: fix Helper line number change
testing: update helperNames just before checking it
testing: update helperNames just before checking it
gopherbot commentedon Mar 19, 2021
Change https://golang.org/cl/303189 mentions this issue:
[release-branch.go1.16] testing: update helperNames just before checking it[release-branch.go1.16] testing: update helperNames just before check…
testing: update helperNames just before checking it