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

Method startServer

test/end2end_test.go:710–713  ·  view source on GitHub ↗

startServer starts a gRPC server exposing the provided TestService implementation. Callers should defer a call to te.tearDown to clean up

(ts testgrpc.TestServiceServer)

Source from the content-addressed store, hash-verified

708// startServer starts a gRPC server exposing the provided TestService
709// implementation. Callers should defer a call to te.tearDown to clean up
710func (te *test) startServer(ts testgrpc.TestServiceServer) {
711 te.t.Helper()
712 te.listenAndServe(ts, net.Listen)
713}
714
715// startServers starts 'num' gRPC servers exposing the provided TestService.
716func (te *test) startServers(ts testgrpc.TestServiceServer, num int) {

Calls 1

listenAndServeMethod · 0.95

Tested by

no test coverage detected