Skip to content

Refactor the test compiler into a separate library#31642

Merged
jonahwilliams merged 2 commits intoflutter:masterfrom
jonahwilliams:more_test_refactor
Apr 26, 2019
Merged

Refactor the test compiler into a separate library#31642
jonahwilliams merged 2 commits intoflutter:masterfrom
jonahwilliams:more_test_refactor

Conversation

@jonahwilliams
Copy link
Contributor

Description

Refactors the test compiler into a separate library, and refactors it to use fewer closures. Adds a simple test that given a compilation request, it produces the expected dill file.

Also some assorted formatting fixes in the test file folder.

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d
(modulo nits)

/// This class is a wrapper around compiler that allows multiple isolates to
/// enqueue compilation requests, but ensures only one compilation at a time.
class TestCompiler {
TestCompiler(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a doc comment about what the parameters are for and their contract?

@jonahwilliams jonahwilliams merged commit 9d36404 into flutter:master Apr 26, 2019
@jonahwilliams jonahwilliams deleted the more_test_refactor branch April 26, 2019 19:33
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants