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.
24 lines
305 B
24 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
|
|
}
|