You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
305 B
23 lines
305 B
package assert |
|
|
|
type fakeT struct { |
|
gotError bool |
|
} |
|
|
|
func newFakeT() (*fakeT, Assert) { |
|
var ft fakeT |
|
return &ft, New(&ft) |
|
} |
|
|
|
func (t *fakeT) Error(_ ...interface{}) { |
|
t.gotError = true |
|
} |
|
|
|
func (_ *fakeT) Helper() {} |
|
|
|
func (t *fakeT) GotError() bool { |
|
r := t.gotError |
|
t.gotError = false |
|
|
|
return r |
|
}
|
|
|