(t *testing.T)
| 112 | } |
| 113 | |
| 114 | func 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 | |
| 126 | func TestGetEmpty(t *testing.T) { |
| 127 | kms.Unittest = true |
nothing calls this directly
no test coverage detected