-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Flutter driver deserialization #172927
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
base: master
Are you sure you want to change the base?
Flutter driver deserialization #172927
Conversation
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.
Code Review
This pull request significantly improves the deserialization logic in flutter_driver
by adding more descriptive ArgumentError
s and support for default values, making the API more robust and easier to debug. The introduction of a path
parameter for tracking the location of deserialization errors in nested structures is a particularly valuable enhancement. The accompanying tests are thorough and cover the new functionality well.
I've provided a couple of minor suggestions to further refine the new error handling and its corresponding tests. Overall, this is an excellent and well-executed contribution.
d3d6665
to
7bd1ddc
Compare
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.
LGTM sorry for the delay (OOO)
cc @matanlurey PTAL at the small change I made, I removed the |
Adds more descriptive ArgumentErrors to flutter driver deserialization methods for commands and finders.
Also adds support for the normal defaults to the deserialization handlers (can revert this if you like, but it helps when interacting with flutter driver as a client so that it is more similar to how the API works).
The tests aren't completely exhaustive as that would get very verbose, but they do cover a variety of use cases.
Fixes #172127
Pre-launch Checklist
///
).