Skip to content

Commit

Permalink
Merge pull request #979 from iainism/patch-2
Browse files Browse the repository at this point in the history
Update README.md to include note about 2-year-old 'known issue' for spy and suspend function
  • Loading branch information
Raibaz committed Nov 23, 2022
2 parents 5d22742 + 6ca9039 commit 219ddaf
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 219ddaf

Please sign in to comment.