@@ -31,7 +31,7 @@ func (assert *Assert) IsFalse(b bool, details ...interface{}) {
3131
3232// IsTrue asserts that b is true.
3333// If it's not then Fatal() is called with details.
34- func IsTrue (t * testing.T , cond bool , details ... interface {}) {
34+ func IsTrue (t testing.TB , cond bool , details ... interface {}) {
3535 assert := New (t , Fatal )
3636 assert .IsTrue (cond , details ... )
3737}
@@ -47,7 +47,7 @@ func (assert *Assert) EqualStrings(want string, got string, details ...interface
4747
4848// EqualStrings compares the two strings for equality.
4949// If they are not equal then the Fatal() function is called with details.
50- func EqualStrings (t * testing.T , want string , got string , details ... interface {}) {
50+ func EqualStrings (t testing.TB , want string , got string , details ... interface {}) {
5151 t .Helper ()
5252 assert := New (t , Fatal )
5353 assert .EqualStrings (want , got , details ... )
@@ -64,7 +64,7 @@ func (assert *Assert) EqualInts(want int, got int, details ...interface{}) {
6464
6565// EqualInts compares the two ints for equality.
6666// If they are not equal then the Fatal() function is called with details.
67- func EqualInts (t * testing.T , want int , got int , details ... interface {}) {
67+ func EqualInts (t testing.TB , want int , got int , details ... interface {}) {
6868 t .Helper ()
6969 assert := New (t , Fatal )
7070 assert .EqualInts (want , got , details ... )
@@ -90,7 +90,7 @@ func (assert *Assert) EqualFloats(want float64, got float64, details ...interfac
9090
9191// EqualFloats compares the two floats for equality.
9292// If they are not equal then the Fatal() function is called with details.
93- func EqualFloats (t * testing.T , want , got float64 , details ... interface {}) {
93+ func EqualFloats (t testing.TB , want , got float64 , details ... interface {}) {
9494 t .Helper ()
9595 assert := New (t , Fatal )
9696 assert .EqualFloats (want , got )
@@ -107,7 +107,7 @@ func (assert *Assert) EqualComplexes(want, got complex128, details ...interface{
107107
108108// EqualComplexes compares the two complex numbers for equality.
109109// If they are not equal then the Fatal function is called with details.
110- func EqualComplexes (t * testing.T , want , got complex128 , details ... interface {}) {
110+ func EqualComplexes (t testing.TB , want , got complex128 , details ... interface {}) {
111111 t .Helper ()
112112 assert := New (t , Fatal )
113113 assert .EqualComplexes (want , got , details ... )
@@ -138,7 +138,7 @@ func (assert *Assert) EqualErrs(want error, got error, details ...interface{}) {
138138// EqualErrs compares if two errors have the same error description (by calling .Error()).
139139// If they are not equal then the Fatal() function is called with details.
140140// Both errors can't be nil.
141- func EqualErrs (t * testing.T , want , got error , details ... interface {}) {
141+ func EqualErrs (t testing.TB , want , got error , details ... interface {}) {
142142 t .Helper ()
143143 assert := New (t , Fatal )
144144 assert .EqualErrs (want , got , details ... )
0 commit comments