• Mark Ryan's avatar
    encoding: report correct line numbers in tests · 34ab4211
    Mark Ryan authored
    Some of the _test.go files in the encoding packages contain a private
    function called testEqual that calls testing.Errorf if the arguments
    passed to it are unequal.   The line numbers output by such calls to
    Errorf identify the failure as being in testEqual itself which is not
    very useful.  This commit fixes the problem by adding a call to the
    new t.Helper method in each of the testEqual functions.  The line
    numbers output when errors do occur now identify the real source of
    the error.
    
    Change-Id: I582d1934f40ef2b788116c3811074c67ea882021
    Reviewed-on: https://go-review.googlesource.com/45871Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    34ab4211
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...