Skip to content

Refactor shared code in tests and tools. #2308

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

Merged
merged 1 commit into from
Aug 18, 2020
Merged

Conversation

srawlins
Copy link
Member

  • Move SubprocessLauncher out of test/, into tool/. It's imported by both.
  • Move most top-level Directory objects out of utils.dart, into singular test
    files where they are used, mostly dartdoc_test.dart.
  • Move generatorContextFromArgv from utils.dart to dartdoc_test.dart.
  • Clean up set-up and tear-down methods in dartdoc_test.dart.
  • Move most top-level PackageGraph code from utils.dart to
    model_special_cases_test.dart and model_test.dart.

Also type-annotate public API in warnings.dart.

* Move SubprocessLauncher out of test/, into tool/. It's imported by both.
* Move most top-level Directory objects out of utils.dart, into singular test
  files where they are used, mostly dartdoc_test.dart.
* Move `generatorContextFromArgv` from utils.dart to dartdoc_test.dart.
* Clean up set-up and tear-down methods in dartdoc_test.dart.
* Move most top-level PackageGraph code from utils.dart to
  model_special_cases_test.dart and model_test.dart.

Also type-annotate public API in warnings.dart.
@srawlins srawlins requested a review from scheglov August 17, 2020 23:47
@googlebot googlebot added the cla: yes Google CLA check succeeded. label Aug 17, 2020
@srawlins srawlins merged commit 977f117 into dart-lang:master Aug 18, 2020
@srawlins srawlins deleted the tidy-3 branch August 18, 2020 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants