<Geocoder Mockk "Failed matching mocking signature...
# stackoverflow
r
Geocoder Mockk "Failed matching mocking signature for" I'm trying to build some unit tests and mock the Geocoder API in Android. I have the following function which I try to build a unit test against it: @RequiresApi(Build.VERSION_CODES.TIRAMISU) private suspend fun Geocoder.getFromLocationApi33( latitude: Double, longitude: Double ) = suspendCancellableCoroutine { continuation -> this.getFromLocation(latitude, longitude, MAX_RESULTS) { addresses -> continuation.resumeWith(Result.success(addresses.firstOrNull())) } } And...