(t *testing.T)
| 99 | } |
| 100 | |
| 101 | func TestRemove(t *testing.T) { |
| 102 | kms.Unittest = true |
| 103 | utils.RemoveAll(testStorePath + "*") |
| 104 | kms.ResetBucket() |
| 105 | |
| 106 | x, _ := InitConsistent(testStorePath, new(KMSStorage), false) |
| 107 | defer utils.RemoveAll(testStorePath + "*") |
| 108 | x.Add(NewNodeFromString("0000000000000000000000000000000000000000000000000000000000000000")) |
| 109 | x.Remove("0000000000000000000000000000000000000000000000000000000000000000") |
| 110 | CheckNum(len(x.circle), 0, t) |
| 111 | CheckNum(len(x.sortedHashes), 0, t) |
| 112 | } |
| 113 | |
| 114 | func TestRemoveNonExisting(t *testing.T) { |
| 115 | kms.Unittest = true |
nothing calls this directly
no test coverage detected