Summary #
- Fix name-to-assertion drift in
log.FromContextfallback tests by asserting pointer equality againstslog.Default()instead of only checking!= nil, and align test names (TestFromContext_...) with the public entrypoint under test. - Cover case-insensitive and whitespace-padded log level strings (
" DEBUG\n"), unrecognized level fallback ("trace"defaulting toinfo), andForceColor: falseplain output behavior. - Replace abbreviated
bufidentifiers withoutputBufferand exposegotvs.wantin failure messages.