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

Function CheckNum

consistent/consistent_test.go:53–57  ·  view source on GitHub ↗

CheckNum make int assertion.

(num, expected int, t *testing.T)

Source from the content-addressed store, hash-verified

51
52// CheckNum make int assertion.
53func CheckNum(num, expected int, t *testing.T) {
54 if num != expected {
55 t.Errorf("got %d, expected %d", num, expected)
56 }
57}
58
59func NewNodeFromString(id string) Node {
60 _, publicKey, _ := asymmetric.GenSecp256k1KeyPair()

Callers 3

TestAddFunction · 0.70
TestRemoveFunction · 0.70
TestRemoveNonExistingFunction · 0.70

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected