• Roger Peppe's avatar
    make C.Run more general · 08b59ac9
    Roger Peppe authored
    Currently, c.Run can only be used if c.TB implements exactly
    the Run method provided by `*testing.T`. However, there are
    other possible implementations of `testing.TB` - most notably `*testing.B`.
    
    There could also be other potential implementations that don't involve the
    testing package at all.
    
    Instead of special-casing the Run method signatures implemented
    by `*testing.B` and `*testing.C`, this PR allows Run to work on
    any `testing.TB` implementation that takes a compatible function.
    08b59ac9
Name
Last commit
Last update
qtsuite Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
checker.go Loading commit data...
checker_test.go Loading commit data...
comment.go Loading commit data...
comment_test.go Loading commit data...
doc.go Loading commit data...
error.go Loading commit data...
error_test.go Loading commit data...
export_test.go Loading commit data...
format.go Loading commit data...
format_test.go Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
patch.go Loading commit data...
patch_test.go Loading commit data...
quicktest.go Loading commit data...
quicktest_test.go Loading commit data...
race_test.go Loading commit data...
report.go Loading commit data...
report_test.go Loading commit data...