(b *testing.B)
| 16 | } |
| 17 | |
| 18 | func BenchmarkDummyLoggerNoLock(b *testing.B) { |
| 19 | nullf, err := os.OpenFile("/dev/null", os.O_WRONLY|os.O_APPEND, 0666) |
| 20 | if err != nil { |
| 21 | b.Fatalf("%v", err) |
| 22 | } |
| 23 | defer nullf.Close() |
| 24 | doLoggerBenchmarkNoLock(b, nullf, &TextFormatter{DisableColors: true}, smallFields) |
| 25 | } |
| 26 | |
| 27 | func doLoggerBenchmark(b *testing.B, out *os.File, formatter Formatter, fields Fields) { |
| 28 | logger := Logger{ |
nothing calls this directly
no test coverage detected