MCPcopy
hub / github.com/sirupsen/logrus / BenchmarkDummyLogger

Function BenchmarkDummyLogger

logger_bench_test.go:9–16  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

7)
8
9func 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
18func BenchmarkDummyLoggerNoLock(b *testing.B) {
19 nullf, err := os.OpenFile("/dev/null", os.O_WRONLY|os.O_APPEND, 0666)

Callers

nothing calls this directly

Calls 2

doLoggerBenchmarkFunction · 0.85
FatalfMethod · 0.65

Tested by

no test coverage detected