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
What steps will reproduce the problem?
This is a feature request to expose the call depth that testing will log failures at.
Consider this code
http://play.golang.org/p/MhVJrCk2oh
What is the expected output? What do you see instead?
What we get
=== RUN TestSomething
--- FAIL: TestSomething (0.00 seconds)
tt_test.go:8: an error
FAIL
exit status 1
FAIL tt 0.002s
What i'd like
=== RUN TestSomething
--- FAIL: TestSomething (0.00 seconds)
tt_test.go:16: an error
FAIL
exit status 1
FAIL tt 0.002s
Can a method be added to testing.common to allow the the caller of Fatal/Error/Log{,f}
to specify the number of stackframes to unwind.
Please use labels and text to provide additional information.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: