Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add note (to spy and coroutines sections) about known issue with suspending functions and spy (issue now nearly two years old)
  • Loading branch information
iainism committed Nov 22, 2022
1 parent 5d22742 commit 6ca9039
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -282,7 +282,8 @@ verify { car.drive(Direction.NORTH) }
confirmVerified(car)
```

Note: the spy object is a copy of the passed object.
Note 1: the spy object is a copy of the passed object.
Note 2: there is a known issue if using a spy with a suspending function: https://github.com/mockk/mockk/issues/554

### Relaxed mock

Expand Down Expand Up @@ -873,6 +874,8 @@ runTest {
}
```

Note: there is a known issue if using a spy with a suspending function: https://github.com/mockk/mockk/issues/554

### Extension functions

There are three types of extension function in Kotlin:
Expand Down

0 comments on commit 6ca9039

Please sign in to comment.