I have a ktor integration that check if there is connection available to do A or B. This integration is KMP too.
I could create a UI test in an Android emulator and setting the internet connection to off but it would be annoying to create an Android UI test for this and I would lose the verification on the rest of platform.
The other solution in changing the implementation to inject a fake and setting that check to false, but I would like to know if there were a way to force in a specific test the condition of not having access to the network or something similar which would be having a more realistic use case.