Errorf collects the error.
(format string, args ...interface{})
| 1902 | |
| 1903 | // Errorf collects the error. |
| 1904 | func (c *CollectT) Errorf(format string, args ...interface{}) { |
| 1905 | c.errors = append(c.errors, fmt.Errorf(format, args...)) |
| 1906 | } |
| 1907 | |
| 1908 | // FailNow panics. |
| 1909 | func (*CollectT) FailNow() { |