File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ version: 2
88jobs :
99 build :
1010 docker :
11- - image : golang:1.16.7
11+ - image : golang:1.17.1
1212 working_directory : /gopath/src/github.com/vcaesar/tt
1313 steps :
1414 - checkout
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ func isTest(name, prefix string) bool {
5858 return ! unicode .IsLower (rune )
5959}
6060
61- // CallerInfo returns an array of strings containing the file and line number
62- // of each stack frame leading from the current test to the assert call that
61+ // CallerInfo returns an array of strings containing the file and line number,
62+ // and each stack frame leading from the current test, when the assert call that
6363// failed.
6464func CallerInfo () (callers []string ) {
6565 var (
@@ -89,10 +89,7 @@ func CallerInfo() (callers []string) {
8989 name = f .Name ()
9090
9191 // testing.tRunner is the standard library function that calls
92- // tests. Subtests are called directly by tRunner, without going through
93- // the Test/Benchmark/Example function that contains the t.Run calls, so
94- // with subtests we should break when we hit tRunner, without adding it
95- // to the list of callers.
92+ // tests.
9693 if name == "testing.tRunner" {
9794 break
9895 }
You can’t perform that action at this time.
0 commit comments