Errorf is equivalent to Logf followed by Fail.
(format string, args ...interface{})
| 255 | |
| 256 | // Errorf is equivalent to Logf followed by Fail. |
| 257 | func (c *common) Errorf(format string, args ...interface{}) { |
| 258 | c.log(fmt.Sprintf(format, args...)) |
| 259 | c.Fail() |
| 260 | } |
| 261 | |
| 262 | // Fatal is equivalent to Log followed by FailNow. |
| 263 | func (c *common) Fatal(args ...interface{}) { |