From 1e6afdb1176bf434327dea9ee4358cb77efa4bbc Mon Sep 17 00:00:00 2001 From: ryanhanks-bestow <87093311+ryanhanks-bestow@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:50:35 -0600 Subject: [PATCH] Reference Issue #581 in relevant section of README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a9fdfac6..afa03c09 100644 --- a/README.md +++ b/README.md @@ -346,7 +346,8 @@ with `when(cat.sound())`, so what should the code do? What is the "missing stub" behavior? * The "missing stub" behavior of a mock class generated with `@GenerateMocks` is - to throw an exception. + to throw an exception (with the exception of methods that return + `Future` – see https://github.com/dart-lang/mockito/issues/581). * The "missing stub" behavior of a mock class generated with `@GenerateNiceMocks` is to return a "simple" legal value (for example, a non-`null` value for a non-nullable return type). The value should not be used