Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestingT ¶ added in v0.12.0
type TestingT struct {
// contains filtered or unexported fields
}
TestingT is an intermediate type, not for direct instantiation.
func Error ¶ added in v0.12.0
func Error(t testingT) TestingT
Error receives a *testing.T, and prepares the caller for a So call. In the event of an assertion failure it will pass the error to *testing.T.Error. assert.Error(t).So(1, should.Equal, 2) // results in t.Error(err)
func Fatal ¶ added in v0.12.0
func Fatal(t testingT) TestingT
Fatal receives a *testing.T, and prepares the caller for a So call. In the event of an assertion failure it will pass the error to *testing.T.Fatal. assert.Fatal(t).So(1, should.Equal, 2) // results in t.Fatal(err)
func Log ¶ added in v0.12.0
func Log(t testingT) TestingT
Log receives a *testing.T, and prepares the caller for a So call. In the event of an assertion failure it will pass the error to *testing.T.Log. assert.Log(t).So(1, should.Equal, 2) // results in t.Log(err)
func Println ¶ added in v0.16.0
func Println() TestingT
Println prepares the caller for a So call. In the event of an assertion failure it will pass the error to fmt.Println. assert.Println().So(1, should.Equal, 2) // results in fmt.Println(err)