(b *testing.B)
| 123 | } |
| 124 | |
| 125 | func BenchmarkDurationField(b *testing.B) { |
| 126 | withBenchedLogger(b, func(log *Logger) { |
| 127 | log.Info("Duration", Duration("foo", time.Second)) |
| 128 | }) |
| 129 | } |
| 130 | |
| 131 | func BenchmarkErrorField(b *testing.B) { |
| 132 | err := errors.New("egad") |
nothing calls this directly
no test coverage detected