mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
Use Go 1.9 t.Helper() to remove testify from the output of the tests and stop using `\r` to try to overwrite the output. This means in Go 1.7 and Go 1.8 testify will appear as failing the test.
14 lines
306 B
Go
14 lines
306 B
Go
package require
|
|
|
|
// TestingT is an interface wrapper around *testing.T
|
|
type TestingT interface {
|
|
Errorf(format string, args ...interface{})
|
|
FailNow()
|
|
}
|
|
|
|
type tHelper interface {
|
|
Helper()
|
|
}
|
|
|
|
//go:generate go run ../_codegen/main.go -output-package=require -template=require.go.tmpl -include-format-funcs
|