Accept an interface instead of testing.T (#1)

This commit is contained in:
Crow Crowcrow 2020-01-17 22:36:24 +01:00 committed by Gitea
parent 66ad00ea84
commit fe8a28286e
3 changed files with 10 additions and 5 deletions

7
type.go Normal file
View file

@ -0,0 +1,7 @@
package assert
// T is an interface of what we use from testing.T
type T interface {
Error(...interface{})
Helper()
}