Remove Cleanup from T interface

这个提交包含在:
Nise Void 2020-06-12 16:27:05 +02:00
父节点 58bacd98ce
当前提交 0ead6dfb99
签署人:: NiseVoid
GPG 密钥 ID: FBA14AC83EA602F3
共有 2 个文件被更改,包括 1 次插入3 次删除

查看文件

@ -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

查看文件

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