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

Function TestGetTwoEmpty

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

Source from the content-addressed store, hash-verified

334}
335
336func TestGetTwoEmpty(t *testing.T) {
337 kms.Unittest = true
338 utils.RemoveAll(testStorePath + "*")
339 kms.ResetBucket()
340
341 x, _ := InitConsistent(testStorePath, new(KMSStorage), false)
342 defer utils.RemoveAll(testStorePath + "*")
343 _, _, err := x.GetTwoNeighbors("9999999999999999999999999999999999999999999999999999999999999999")
344 if err != ErrEmptyCircle {
345 t.Fatal(err)
346 }
347}
348
349func TestGetTwoQuick(t *testing.T) {
350 kms.Unittest = true

Callers

nothing calls this directly

Calls 5

RemoveAllFunction · 0.92
ResetBucketFunction · 0.92
InitConsistentFunction · 0.85
GetTwoNeighborsMethod · 0.80
FatalMethod · 0.80

Tested by

no test coverage detected