I'm going through the gRPC kotlin tutorial here. It is relatively easy to create a client stub and call it like follows:
val channel = ManagedChannelBuilder.forAddress("localhost", 8980).usePlaintext().build()
val stub = RouteGuideCoroutineStub(channel)
However, I can't figure out how to create a "fake" stub for testing / running locally.
Is there a way to create a fake RouteGuideCoroutineStub
class? Or a way of binding this stub to call a fake in-process server?
I see in the non-kt offering of grpc that there exists a function RouteGuideCoroutine.newFutureStub
lets us instantiate a new stub. Does something like this exist for grpcKt?