File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -476,10 +476,11 @@ func (c *common) log(s string) {
476
476
// printed to avoid having performance depend on the value of the -test.v flag.
477
477
func (c * common ) Log (args ... interface {}) { c .log (fmt .Sprintln (args ... )) }
478
478
479
- // Logf formats its arguments according to the format, analogous to Printf,
480
- // and records the text in the error log. For tests, the text will be printed only if
481
- // the test fails or the -test.v flag is set. For benchmarks, the text is always
482
- // printed to avoid having performance depend on the value of the -test.v flag.
479
+ // Logf formats its arguments according to the format, analogous to Printf, and
480
+ // records the text in the error log. A final newline is added if not provided. For
481
+ // tests, the text will be printed only if the test fails or the -test.v flag is
482
+ // set. For benchmarks, the text is always printed to avoid having performance
483
+ // depend on the value of the -test.v flag.
483
484
func (c * common ) Logf (format string , args ... interface {}) { c .log (fmt .Sprintf (format , args ... )) }
484
485
485
486
// Error is equivalent to Log followed by Fail.
You can’t perform that action at this time.
0 commit comments