We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With version 5.0.15. (not tested with previous versions)
For an annotation like this:
@GenerateMocks( [], customMocks: [MockSpec<ICall<List<Location>>>(as: #MockLocationsCall)], )
The generated mock definition looks like this:
class MockLocationsCall extends _i1.Mock implements _i4.ICall<List<Location>> { // wrong implements definition @override _i3.Future<List<_i12.Location>> execute() ... // correctly generated }
It should generate it with _i12.Location typed parameter alias:
_i12.Location
class MockLocationsCall extends _i1.Mock implements _i4.ICall<List<_i12.Location>> { @override _i3.Future<List<_i12.Location>> execute() ... }
The text was updated successfully, but these errors were encountered:
Thanks for the report!
Sorry, something went wrong.
Properly reference types in type arguments on a class-to-mock.
584b881
Fixes #469 PiperOrigin-RevId: 395985920
9e9e7c1
6b6b408
Fixes dart-lang/mockito#469 PiperOrigin-RevId: 395985920
srawlins
No branches or pull requests
With version 5.0.15. (not tested with previous versions)
For an annotation like this:
The generated mock definition looks like this:
It should generate it with
_i12.Location
typed parameter alias:The text was updated successfully, but these errors were encountered: