Remove Cleanup from T interface
This commit is contained in:
parent
58bacd98ce
commit
0ead6dfb99
2 changed files with 1 additions and 3 deletions
|
@ -13,8 +13,7 @@ func (t *fakeT) Error(_ ...interface{}) {
|
||||||
t.gotError = true
|
t.gotError = true
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ *fakeT) Helper() {}
|
func (_ *fakeT) Helper() {}
|
||||||
func (_ *fakeT) Cleanup(_ func()) {}
|
|
||||||
|
|
||||||
func (t *fakeT) GotError() bool {
|
func (t *fakeT) GotError() bool {
|
||||||
r := t.gotError
|
r := t.gotError
|
||||||
|
|
1
type.go
1
type.go
|
@ -4,5 +4,4 @@ package assert
|
||||||
type T interface {
|
type T interface {
|
||||||
Error(...interface{})
|
Error(...interface{})
|
||||||
Helper()
|
Helper()
|
||||||
Cleanup(func())
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue