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

Function TestRemoveNonExisting

consistent/consistent_test.go:114–124  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

112}
113
114func TestRemoveNonExisting(t *testing.T) {
115 kms.Unittest = true
116 utils.RemoveAll(testStorePath + "*")
117 kms.ResetBucket()
118
119 x, _ := InitConsistent(testStorePath, new(KMSStorage), false)
120 defer utils.RemoveAll(testStorePath + "*")
121 x.Add(NewNodeFromString("0000000000000000000000000000000000000000000000000000000000000000"))
122 x.Remove("0000000000000000000000000000000000000000000000000000000000000000hijk")
123 CheckNum(len(x.circle), x.NumberOfReplicas, t)
124}
125
126func TestGetEmpty(t *testing.T) {
127 kms.Unittest = true

Callers

nothing calls this directly

Calls 7

RemoveAllFunction · 0.92
ResetBucketFunction · 0.92
InitConsistentFunction · 0.85
NewNodeFromStringFunction · 0.85
CheckNumFunction · 0.70
AddMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected