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

Function testRequest

worker/dbms_test.go:581–589  ·  view source on GitHub ↗
(method route.RemoteFunc, req interface{}, response interface{})

Source from the content-addressed store, hash-verified

579}
580
581func testRequest(method route.RemoteFunc, req interface{}, response interface{}) (err error) {
582 // get node id
583 var nodeID proto.NodeID
584 if nodeID, err = kms.GetLocalNodeID(); err != nil {
585 return
586 }
587
588 return rpc.NewCaller().CallNode(nodeID, method.String(), req, response)
589}

Callers 1

TestDBMSFunction · 0.70

Calls 3

GetLocalNodeIDFunction · 0.92
CallNodeMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected