mockito icon indicating copy to clipboard operation
mockito copied to clipboard

Support returning Future<ExtensionType>

Open xvrh opened this issue 9 months ago • 0 comments

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:

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

xvrh avatar Feb 20 '25 15:02 xvrh