Logf formats its arguments according to the format, analogous to Printf, and records the text in the error log. A final newline is added if not provided. For tests, the text will be printed only if the test fails or the -test.v flag is set. For benchmarks, the text is always printed to avoid having
(format string, args ...interface{})
| 246 | // set. For benchmarks, the text is always printed to avoid having performance |
| 247 | // depend on the value of the -test.v flag. |
| 248 | func (c *common) Logf(format string, args ...interface{}) { c.log(fmt.Sprintf(format, args...)) } |
| 249 | |
| 250 | // Error is equivalent to Log followed by Fail. |
| 251 | func (c *common) Error(args ...interface{}) { |