Skip to content

Make LocalFileComparator.compare easier to override - #77825

Merged
fluttergithubbot merged 1 commit into
flutter:masterfrom
Piinks:openGoldens
Mar 10, 2021
Merged

fluttergithubbot merged 1 commit into
flutter:masterfrom
Piinks:openGoldens

Conversation

@Piinks

@Piinks Piinks commented Mar 10, 2021

Copy link
Copy Markdown
Contributor

In setting up a custom comparator for flutter/cocoon, I realized it is not very easy to override the compare function.
This refactors things a bit to fix that.
Related to #76337

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@Piinks
Piinks requested a review from CaseyHillers March 10, 2021 17:54
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@flutter-dashboard flutter-dashboard Bot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Mar 10, 2021
@google-cla google-cla Bot added the cla: yes label Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants