(b *testing.B)
| 131 | } |
| 132 | |
| 133 | func RunLogBenchmark(b *testing.B) { |
| 134 | password := Password("foo") |
| 135 | log := MustGetLogger("test") |
| 136 | |
| 137 | b.ResetTimer() |
| 138 | for i := 0; i < b.N; i++ { |
| 139 | log.Debug("log line for %d and this is rectified: %s", i, password) |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func BenchmarkLogFixed(b *testing.B) { |
| 144 | backend := SetBackend(NewLogBackend(ioutil.Discard, "", 0)) |
no test coverage detected