Skip to content

Commit 3b53089

Browse files
committed
Update circle.yml and godoc
1 parent eeaf470 commit 3b53089

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
jobs:
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

fn.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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.
6464
func 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
}

0 commit comments

Comments
 (0)