partiallyNopCore behaves exactly like NopCore except it always returns true for whether the provided level is enabled, and accepts all Check requests. This lets us measure the overhead of the writer without measuring the cost of logging.
| 236 | // This lets us measure the overhead of the writer without measuring the cost |
| 237 | // of logging. |
| 238 | type partiallyNopCore struct{} |
| 239 | |
| 240 | func (*partiallyNopCore) Enabled(zapcore.Level) bool { return true } |
| 241 |
nothing calls this directly
no outgoing calls
no test coverage detected