Repository navigation
[flutter_tool] process.dart cleanup - #39899
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #39899 +/- ##
=========================================
Coverage ? 59.76%
=========================================
Files ? 192
Lines ? 18601
Branches ? 0
=========================================
Hits ? 11117
Misses ? 7484
Partials ? 0
Continue to review full report at Codecov.
|
zanderso
requested review from
blasten,
christopherfujino and
jonahwilliams
September 10, 2019 18:24
jonahwilliams
approved these changes
Sep 10, 2019
jonahwilliams
left a comment
Contributor
There was a problem hiding this comment.
LGTM
Yay for fewer ways to do the same thing!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Prior to this PR, base/process.dart contained 8-ish top-level wrappers of
ProcessManagermethods. These wrappers aren't strictly necessary since call-sites could instead just use theProcessManagercalls, but they simplify some common tasks, so I'd like to keep them.This PR groups these wrappers under an inject-able class
ProcessUtils, and removes the*Checked*versions, replacing them with passing thethrowsOnErroroptional named parameter to the remaining un-checked versions.Bookmark to process.dart in the PR: https://github.com/flutter/flutter/pull/39899/files#diff-22b5beed6542f4fbfb2dab53913549d7. The rest of the PR is compensating changes for the refactor.
Tests
I added the following tests:
Added tests of wrappers to process_test.dart
Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?