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

Function newTestServer

internal/transport/transport_test.go:382–389  ·  internal/transport/transport_test.go::newTestServer
()

Source from the content-addressed store, hash-verified

380}
381
382func newTestServer() *server {
383 return &server{
384 startedErr: make(chan error, 1),
385 ready: make(chan struct{}),
386 servingTasksDone: make(chan struct{}),
387 channelz: channelz.RegisterServer("test server"),
388 }
389}
390
391// start starts server. Other goroutines should block on s.readyChan for further operations.
392func (s *server) start(t *testing.T, port int, serverConfig *ServerConfig, ht hType) {

Callers 1

setUpServerOnlyFunction · 0.70

Calls 1

RegisterServerFunction · 0.92

Tested by

no test coverage detected