Closed vanackere closed 6 years ago
See https://golang.org/pkg/testing/#T.Helper for documentation of this new method.
On go >= 1.9 this allows to mark assert/require functions as test helper functions and get the proper trace without further work.
On go < 1.9 the previous behaviour (manual computation of caller info, added to the message log) is kept.
See https://golang.org/pkg/testing/#T.Helper for documentation of this new method.
On go >= 1.9 this allows to mark assert/require functions as test helper functions and get the proper trace without further work.
On go < 1.9 the previous behaviour (manual computation of caller info, added to the message log) is kept.