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

Function setUp

internal/transport/transport_test.go:590–595  ·  view source on GitHub ↗
(t *testing.T, port int, ht hType)

Source from the content-addressed store, hash-verified

588}
589
590func setUp(t *testing.T, port int, ht hType) (*server, *http2Client, func()) {
591 copts := ConnectOptions{
592 BufferPool: mem.DefaultBufferPool(),
593 }
594 return setUpWithOptions(t, port, &ServerConfig{BufferPool: mem.DefaultBufferPool()}, ht, copts)
595}
596
597func setUpWithOptions(t *testing.T, port int, sc *ServerConfig, ht hType, copts ConnectOptions) (*server, *http2Client, func()) {
598 server := setUpServerOnly(t, port, sc, ht)

Calls 2

DefaultBufferPoolFunction · 0.92
setUpWithOptionsFunction · 0.85

Tested by

no test coverage detected