Fail marks the test as having failed but continues execution.
()
| 282 | |
| 283 | // Fail marks the test as having failed but continues execution. |
| 284 | func (t *T) Fail() { |
| 285 | t.mu.Lock() |
| 286 | defer t.mu.Unlock() |
| 287 | t.failed = true |
| 288 | } |
| 289 | |
| 290 | // Failed reports whether the test has failed. |
| 291 | func (t *T) Failed() bool { |