MCPcopy
hub / github.com/pingcap/tidb / NewTestServerClient

Function NewTestServerClient

pkg/server/internal/testserverclient/server_client.go:76–83  ·  view source on GitHub ↗

NewTestServerClient return a TestServerClient with unique address

()

Source from the content-addressed store, hash-verified

74
75// NewTestServerClient return a TestServerClient with unique address
76func NewTestServerClient() *TestServerClient {
77 testenv.SetGOMAXPROCSForTest()
78 return &TestServerClient{
79 Port: 0,
80 StatusPort: 0,
81 StatusScheme: "http",
82 }
83}
84
85// Addr returns the address of the server.
86func (cli *TestServerClient) Addr() string {

Callers 15

TestTLSVerifyFunction · 0.92
TestTLSBasicFunction · 0.92
TestErrorNoRollbackFunction · 0.92
TestReloadTLSFunction · 0.92
TestStatusAPIWithTLSFunction · 0.92
TestTLSAutoFunction · 0.92
TestSocketForwardingFunction · 0.92
TestSocketFunction · 0.92
TestSocketAndIpFunction · 0.92
TestOnlySocketFunction · 0.92

Calls 1

SetGOMAXPROCSForTestFunction · 0.92

Tested by 15

TestTLSVerifyFunction · 0.74
TestTLSBasicFunction · 0.74
TestErrorNoRollbackFunction · 0.74
TestReloadTLSFunction · 0.74
TestStatusAPIWithTLSFunction · 0.74
TestTLSAutoFunction · 0.74
TestSocketForwardingFunction · 0.74
TestSocketFunction · 0.74
TestSocketAndIpFunction · 0.74
TestOnlySocketFunction · 0.74
TestGracefulShutdownFunction · 0.74