mockito
mockito copied to clipboard
Support returning Future<ExtensionType>
Fixes #801
Have the generator correctly generate dummy return value for Future<ExtensionType>
Before, the generators would return: _i2.Future<_i3.Ext>.value((0)) (which won't compile). After, it will generate a cast from the representation dummy value: _i2.Future<_i3.Ext>.value((0 as _i3.Ext))
- [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:
- See our contributor guide for general expectations for PRs.
- Larger or significant changes should be discussed in an issue before creating a PR.
- Contributions to our repos should follow the Dart style guide and use
dart format. - Most changes should add an entry to the changelog and may need to rev the pubspec package version.
- Changes to packages require corresponding tests.
Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.