Remove Cleanup from T interface

This commit is contained in:
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())
}