Accept an interface instead of testing.T (#1)
This commit is contained in:
parent
66ad00ea84
commit
fe8a28286e
3 changed files with 10 additions and 5 deletions
7
type.go
Normal file
7
type.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package assert
|
||||
|
||||
// T is an interface of what we use from testing.T
|
||||
type T interface {
|
||||
Error(...interface{})
|
||||
Helper()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue