-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor parse_diffoscope_json #23
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
Conversation
Doesn't handle file lookup yet. Also, metadata diffs based on metadata.json not yet implemented in previous PR to work here
…vessel into refactor/parse-diffoscope
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.
Very good improvements, several comments below
Consider renaming |
Ready for another review. Lihan fixed the other tests in |
diff_command unit test fixed, ready for review |
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 good, a couple of very minor points
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.
Tested, results line up.
Refactor of
parse_diffoscope_json
function. Mainly followed the suggestions from Sebastian from a while ago that I saved in the issue_check_flags
function, and made each separate check into its own function_process_and_save_results
to_process_and_write_results
is_path
tois_abs_path
and added testsparent_source
parameters and class variables fromDiff
Would appreciate a quick review of how it looks now, to see if there are other changes that should be made before I write unit tests for each sub function if they were to change.