MCPcopy Create free account
hub / github.com/CPChain/chain / newTestServer

Function newTestServer

api/rpc/client_test.go:488–494  ·  view source on GitHub ↗
(serviceName string, service interface{})

Source from the content-addressed store, hash-verified

486}
487
488func newTestServer(serviceName string, service interface{}) *Server {
489 server := NewServer()
490 if err := server.RegisterName(serviceName, service); err != nil {
491 panic(err)
492 }
493 return server
494}
495
496func httpTestClient(srv *Server, transport string, fl *flakeyListener) (*Client, *httptest.Server) {
497 // Create the HTTP server.

Callers 10

TestClientRequestFunction · 0.85
TestClientBatchRequestFunction · 0.85
testClientCancelFunction · 0.85
TestClientSubscribeFunction · 0.85
TestClientSubscribeCloseFunction · 0.85
TestClientHTTPFunction · 0.85
TestClientReconnectFunction · 0.85

Calls 2

RegisterNameMethod · 0.95
NewServerFunction · 0.85

Tested by

no test coverage detected