Browse Source

Remove Cleanup from T interface

pull/2/head v0.1.1
Nise Void 11 months ago
parent
commit
0ead6dfb99
Signed by: NiseVoid GPG Key ID: FBA14AC83EA602F3
  1. 3
      faket_test.go
  2. 1
      type.go

3
faket_test.go

@ -13,8 +13,7 @@ func (t *fakeT) Error(_ ...interface{}) {
t.gotError = true
}
func (_ *fakeT) Helper() {}
func (_ *fakeT) Cleanup(_ func()) {}
func (_ *fakeT) Helper() {}
func (t *fakeT) GotError() bool {
r := t.gotError

1
type.go

@ -4,5 +4,4 @@ package assert
type T interface {
Error(...interface{})
Helper()
Cleanup(func())
}
Loading…
Cancel
Save