MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / setupEnvironment

Function setupEnvironment

rpc/xxx_test.go:200–210  ·  view source on GitHub ↗
(n int, f AcceptConn)

Source from the content-addressed store, hash-verified

198}
199
200func setupEnvironment(n int, f AcceptConn) ([]*proto.Node, func(), error) {
201 nodes, err := createLocalNodes(10, n)
202 if err != nil {
203 return nil, nil, err
204 }
205 stop, err := setupServers(nodes, f)
206 if err != nil {
207 return nil, nil, err
208 }
209 return nodes, stop, nil
210}
211
212func thisNode() *proto.Node {
213 if conf.GConf != nil {

Callers 3

TestAcceptFuncFunction · 0.85
BenchmarkRPCComponentsFunction · 0.85
TestRPCComponentsFunction · 0.85

Calls 2

createLocalNodesFunction · 0.85
setupServersFunction · 0.85

Tested by

no test coverage detected