Errorf collects the error.
(format string, args ...interface{})
| 1966 | |
| 1967 | // Errorf collects the error. |
| 1968 | func (c *CollectT) Errorf(format string, args ...interface{}) { |
| 1969 | c.errors = append(c.errors, fmt.Errorf(format, args...)) |
| 1970 | } |
| 1971 | |
| 1972 | // FailNow stops execution by calling runtime.Goexit. |
| 1973 | func (c *CollectT) FailNow() { |