(t *testing.T)
| 124 | } |
| 125 | |
| 126 | func 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 | |
| 142 | func TestGetSingle(t *testing.T) { |
| 143 | kms.Unittest = true |
nothing calls this directly
no test coverage detected