dart-lang / mockito

Mockito-inspired mock library for Dart
https://pub.dev/packages/mockito
Apache License 2.0
623 stars 160 forks source link

Add basic extension types support #738

Closed copybara-service[bot] closed 4 months ago

copybara-service[bot] commented 4 months ago

Add basic extension types support

This includes allowing extension types as both methods' arguments and return types.

Trying to mock an extension type currently silently produces a mock of its representation, which is likely undesired, but currently I don't see a way to detect this. It looks like constant evaluation always produces erased types.