MCPcopy
hub / github.com/grpc/grpc-go / launchServer

Function launchServer

credentials/credentials_test.go:222–224  ·  view source on GitHub ↗
(t *testing.T, hs serverHandshake, done chan AuthInfo)

Source from the content-addressed store, hash-verified

220}
221
222func launchServer(t *testing.T, hs serverHandshake, done chan AuthInfo) net.Listener {
223 return launchServerOnListenAddress(t, hs, done, "localhost:0")
224}
225
226func launchServerOnListenAddress(t *testing.T, hs serverHandshake, done chan AuthInfo, address string) net.Listener {
227 lis, err := net.Listen("tcp", address)

Calls 1

Tested by

no test coverage detected