Open
Description
A call on a function with the signature Future<void> returnsFutureVoid() => Future.value();
with no expected calls set up with when
will not cause a MissingStubError.
I have read through the README, the FAQ and some of the test cases. From what I understand, this error should always be thrown for mocks generated with GenerateMocks
. I couldn't find any documented problems with functions that return a future. I was not able to reproduce the issue for the mock in the mockito_test.dart
file.
I'll open a pull request with a new test case to demonstrate the issue. If this is a valid bug, I would appreciate any advice on how to fix it.