Skip to content

Commit

Permalink
Reference Issue #581 in relevant section of README
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhanks-bestow authored Dec 20, 2024
1 parent d358e24 commit 1e6afdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>` – 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
Expand Down

0 comments on commit 1e6afdb

Please sign in to comment.