这是indexloc提供的服务,不要输入任何密码
Skip to content

[flutter_tools] remove mocks from test_compiler test #81312

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

Conversation

jonahwilliams
Copy link
Contributor

Work towards #71511

Remove mocks from test compiler test. Remove assertions on the output file existing since that is created by the mock

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Apr 27, 2021
@google-cla google-cla bot added the cla: yes label Apr 27, 2021
@jonahwilliams jonahwilliams requested a review from zanderso April 27, 2021 17:35

@override
Future<ResidentCompiler> createCompiler() async {
return residentCompiler;
}
}

class MockResidentCompiler extends Mock implements ResidentCompiler {}
class FakeResidentCompiler extends Fake implements ResidentCompiler {
Copy link
Member

Choose a reason for hiding this comment

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

What does extending Fake give you?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't implement reset since it isn't used

@jonahwilliams jonahwilliams merged commit 34674fd into flutter:master Apr 27, 2021
@jonahwilliams jonahwilliams deleted the remove_more_mocks_18818322 branch April 27, 2021 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants