(b *testing.B)
| 7 | ) |
| 8 | |
| 9 | func BenchmarkDummyLogger(b *testing.B) { |
| 10 | nullf, err := os.OpenFile("/dev/null", os.O_WRONLY, 0666) |
| 11 | if err != nil { |
| 12 | b.Fatalf("%v", err) |
| 13 | } |
| 14 | defer nullf.Close() |
| 15 | doLoggerBenchmark(b, nullf, &TextFormatter{DisableColors: true}, smallFields) |
| 16 | } |
| 17 | |
| 18 | func BenchmarkDummyLoggerNoLock(b *testing.B) { |
| 19 | nullf, err := os.OpenFile("/dev/null", os.O_WRONLY|os.O_APPEND, 0666) |
nothing calls this directly
no test coverage detected