-
Notifications
You must be signed in to change notification settings - Fork 0
Testing library β mockk
Devrath edited this page Oct 24, 2023
·
14 revisions
Contents |
|---|
| Projects official Github |
| How it is useful |
- So we know when we have a class used in another class, We can make a
fakeversion of that class and pass the fake implementation where it is being used to avoid errors in the actual implementation. - There is another way where we can mock it.
- Basically mocking involves using a
mirror versionof theactual class implementationand once it is mirrored we can make the methods of that particular class behave as we want so that when theimplementationof the class is used in another class they return or respond in a particular way.