Add Go coverage reporting and codec tests#61
Conversation
There was a problem hiding this comment.
Pull request overview
Adds Go code coverage reporting to the go-test CI workflow (running tests across the root module and each top-level ext/* module, then converting the profile to Cobertura via a new standalone tools module) and broadens unit test coverage for the root codecs (NoopCacheStorageCodec, JSONByteStringCodec, BinaryCompressionCodec) and noCopy. The go-bench workflow is also split off to run on push/PR with explicit -benchtime=1s.
Changes:
- Replace benchmark-style execution in
go-testwith-coverprofileruns, generate a Cobertura report via a newtoolsmodule, and upload viaactions/upload-code-coverage. - Add
tools/module (excluded fromgo.work, built withGOWORK=off) pinninggocover-cobertura, plus Dependabot config and dependabot allowlist entry. - Add new tests covering
NoopCacheStorageCodec, JSON codec HTML-escape and buffer-release behavior, additionalBinaryCompressionCodecedge cases, andnoCopysync.Lockercompliance.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Code Coverage OverviewLanguages: Go Go / code-coverage/go-testThe overall coverage in the branch is 68%. The coverage in the branch is 78%. Show a code coverage summary of the most impacted files.Code Coverage is in Public Preview. Learn more and provide us with your feedback. |

Add Go coverage reporting for root and
ext/*modules, plus codec and noCopy test coverage.