mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
internal/testlog: document use of t.Helper
This commit is contained in:
parent
f534b77d8c
commit
6d492179df
1 changed files with 4 additions and 2 deletions
|
|
@ -39,8 +39,10 @@ func (h *handler) Log(r *log.Record) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// logger implements log.Logger such that all output goes to the
|
// logger implements log.Logger such that all output goes to the unit test log via
|
||||||
// unit test log via t.Logf().
|
// t.Logf(). All methods in between logger.Trace, logger.Debug, etc. are marked as test
|
||||||
|
// helpers, so the file and line number in unit test output correspond to the call site
|
||||||
|
// which emitted the log message.
|
||||||
type logger struct {
|
type logger struct {
|
||||||
t *testing.T
|
t *testing.T
|
||||||
l log.Logger
|
l log.Logger
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue