-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: add tests for go/json2
#14964
Conversation
Signed-off-by: Manik Rana <manikrana54@gmail.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14964 +/- ##
=======================================
Coverage 47.26% 47.26%
=======================================
Files 1138 1138
Lines 238842 238842
=======================================
+ Hits 112880 112897 +17
+ Misses 117368 117348 -20
- Partials 8594 8597 +3 ☔ View full report in Codecov by Sentry. |
Coverage report for this package: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Asides from the conversation with @ajm188, the changes in go/json2/marshal_test.go
look good to me. The file went to 100%
of code coverage.
I see in the same package there is the unmarshal.go
file, do you think you can cover this file too?
@frouioui sure thing, I can give it a shot |
Signed-off-by: Manik Rana <manikrana54@gmail.com>
Signed-off-by: Manik Rana <manikrana54@gmail.com>
Signed-off-by: Manik Rana <manikrana54@gmail.com>
Signed-off-by: Manik Rana <manikrana54@gmail.com>
go/json2/marshal.go
go/json2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one minor issue and then i think we're good to go!
Signed-off-by: Manik Rana <manikrana54@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks perfect to me! Thanks a bunch
Description
Add
TestMarshalIndentPB
to covermarshal.go
Add
TestUnmarshalProto
,TestAnnotate
to coverunmarshal.go
Related Issue(s)
#14931
Checklist
Deployment Notes