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

Function TestGetEmpty

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

Source from the content-addressed store, hash-verified

124}
125
126func TestGetEmpty(t *testing.T) {
127 kms.Unittest = true
128 utils.RemoveAll(testStorePath + "*")
129 kms.ResetBucket()
130
131 x, _ := InitConsistent(testStorePath, new(KMSStorage), false)
132 defer utils.RemoveAll(testStorePath + "*")
133 _, err := x.GetNeighbor("asdfsadfsadf")
134 if err == nil {
135 t.Error("expected error")
136 }
137 if err != ErrEmptyCircle {
138 t.Error("expected empty circle error")
139 }
140}
141
142func TestGetSingle(t *testing.T) {
143 kms.Unittest = true

Callers

nothing calls this directly

Calls 5

RemoveAllFunction · 0.92
ResetBucketFunction · 0.92
InitConsistentFunction · 0.85
GetNeighborMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected