-
Notifications
You must be signed in to change notification settings - Fork 166
'Object.==' ('bool Function(Object)') #354
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
Comments
Oooh yikes. That's not great. Object.== indeed accepts a non-nullable |
Thats not only reference, there are plenty classes under flutter fire, which has same issue this is documentReference:
A saw more with storage, etc.. |
I suggest opening bugs against those packages, perhaps asking why they expanded the parameter type on the |
This should be fixed in mockito 5.0.10. |
issue still existed in mockito 5.0.10 |
on 5.0.14 it is an issue when trying to mock just_audio AudioPlayer |
@srawlins any update on this? |
@srawlins I have the same issue with google_sign_in plugin.
This is because
Insight: It (generated mock) used to work until I performed migration of the package to null-safety. @Samin-youki The workaround is to temporarily use stub for your
|
The base method[0] accepts Object, and using dynamic is apparently hostile to mockito[1], which is used downstream. [0] https://api.dart.dev/stable/2.12.0/dart-core/Object/operator_equals.html [1] dart-lang/mockito#354 Change-Id: I0cd6f1a8ad4fccf41f0671d774a0694fa2d28e6a Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/712023 API-Review: Adam Barth <[email protected]> Fuchsia-Auto-Submit: Tamir Duberstein <[email protected]> Reviewed-by: Adam Barth <[email protected]> Commit-Queue: Auto-Submit <[email protected]>
I see this a lot when I am trying to mock firebase libs:
'Object.==' ('bool Function(Object)') isn't a valid concrete implementation of 'Reference.==' ('bool Function(Object?)').
And thats because of their:
Any idea how to use generator for such thing ?
The text was updated successfully, but these errors were encountered: