helper: run a CloudProxy in-process via grpc.Provide so tests can call Forward through the public Backend interface without listening on a real socket.
(t *testing.T, proxy *CloudProxy)
| 19 | // call Forward through the public Backend interface without listening |
| 20 | // on a real socket. |
| 21 | func newInProcClient(t *testing.T, proxy *CloudProxy) grpc.Backend { |
| 22 | t.Helper() |
| 23 | addr := "test://" + t.Name() |
| 24 | grpc.Provide(addr, proxy) |
| 25 | return grpc.NewClient(addr, true, nil, false) |
| 26 | } |
| 27 | |
| 28 | func TestForward_PassthroughEcho(t *testing.T) { |
| 29 | g := NewWithT(t) |
no test coverage detected