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

Function testRequest

client/helper_test.go:267–275  ·  view source on GitHub ↗
(method route.RemoteFunc, req interface{}, response interface{})

Source from the content-addressed store, hash-verified

265}
266
267func testRequest(method route.RemoteFunc, req interface{}, response interface{}) (err error) {
268 // get node id
269 var nodeID proto.NodeID
270 if nodeID, err = kms.GetLocalNodeID(); err != nil {
271 return
272 }
273
274 return rpc.NewCaller().CallNode(nodeID, method.String(), req, response)
275}
276
277func getKeys() (privKey *asymmetric.PrivateKey, pubKey *asymmetric.PublicKey, err error) {
278 // get public key

Callers 1

startTestServiceFunction · 0.70

Calls 3

GetLocalNodeIDFunction · 0.92
CallNodeMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected