Skip to content

Commit 8d57640

Browse files
committed
mark tester() calls
1 parent fc9a0ce commit 8d57640

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assert/asserter.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (asserter asserter) reportAssertionFault(
9595
func (asserter asserter) reportPanic(s string) {
9696
if asserter.isUnitTesting() && asserter.hasCallerInfo() {
9797
fmt.Fprintln(os.Stderr, officialTestOutputPrefix+s)
98-
tester().FailNow()
98+
tester().FailNow() // TODO: tester
9999
} else if asserter.isUnitTesting() {
100100
const framesToSkip = 4 // how many fn calls there is before FuncName call
101101
fatal(s, framesToSkip)
@@ -119,7 +119,7 @@ func fatal(s string, framesToSkip int) {
119119
}
120120
// test output goes thru stderr, no need for t.Log(), test Fail needs it.
121121
fmt.Fprintln(os.Stderr, officialTestOutputPrefix+info)
122-
tester().FailNow()
122+
tester().FailNow() // TODO: tester
123123
}
124124

125125
var longFmtStr = `
@@ -175,5 +175,5 @@ func (asserter asserter) hasFormattedCallerInfo() bool {
175175
// isUnitTesting is expensive because it calls tester(). think carefully where
176176
// to use it
177177
func (asserter asserter) isUnitTesting() bool {
178-
return asserter&asserterUnitTesting != 0 && tester() != nil
178+
return asserter&asserterUnitTesting != 0 && tester() != nil // TODO: tester
179179
}

0 commit comments

Comments
 (0)