-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Fixed JSPB test failures #2400
Fixed JSPB test failures #2400
Conversation
@@ -1049,13 +1049,7 @@ describe('Message test suite', function() { | |||
var nested = new proto.jspb.test.Deeply.Nested.Message(); | |||
nested.setCount(5); | |||
msg.setDeeplyNestedMessage(nested); | |||
|
|||
// After a serialization-deserialization round trip we should get back the |
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.
Why is this serialize/deserialize roundtrip removed?
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.
I found that we don't currently generate fromObject
methods (the code for it exists in js_generator.cc but is never called), so it seemed simplest to just avoid doing the round trip.
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.
Does it still have the same test coverage? I thought the original bug can only be revealed after a round-trip. Is it not the case?
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.
You're right, I went ahead and added the binary serialization round trip back in.
No description provided.