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

Function NewNodeFromString

consistent/consistent_test.go:59–67  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

57}
58
59func NewNodeFromString(id string) Node {
60 _, publicKey, _ := asymmetric.GenSecp256k1KeyPair()
61 return Node{
62 ID: NodeID(id),
63 Addr: "",
64 PublicKey: publicKey,
65 Nonce: cpuminer.Uint256{},
66 }
67}
68
69func TestNew(t *testing.T) {
70 kms.Unittest = true

Callers 15

TestAddFunction · 0.85
TestRemoveFunction · 0.85
TestRemoveNonExistingFunction · 0.85
TestGetSingleFunction · 0.85
TestConsistent_GetNodeFunction · 0.85
TestGetMultipleFunction · 0.85
TestGetMultipleQuickFunction · 0.85
TestGetMultipleRemoveFunction · 0.85
TestGetTwoFunction · 0.85
TestGetTwoQuickFunction · 0.85
TestGetTwoOnlyTwoQuickFunction · 0.85

Calls 2

GenSecp256k1KeyPairFunction · 0.92
NodeIDTypeAlias · 0.85

Tested by

no test coverage detected