(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func TestKVIPList_CountItems(t *testing.T) { |
| 188 | kv, err := iplibrary.NewKVIPList() |
| 189 | if err != nil { |
| 190 | t.Fatal(err) |
| 191 | } |
| 192 | |
| 193 | var count int |
| 194 | var m = map[int64]zero.Zero{} |
| 195 | for { |
| 196 | items, goNext, readErr := kv.ReadItems(0, 1000) |
| 197 | if readErr != nil { |
| 198 | t.Fatal(readErr) |
| 199 | } |
| 200 | for _, item := range items { |
| 201 | count++ |
| 202 | m[item.Id] = zero.Zero{} |
| 203 | } |
| 204 | |
| 205 | if !goNext { |
| 206 | break |
| 207 | } |
| 208 | } |
| 209 | t.Log("count:", count, "len:", len(m)) |
| 210 | } |
| 211 | |
| 212 | func TestKVIPList_Inspect(t *testing.T) { |
| 213 | kv, err := iplibrary.NewKVIPList() |
nothing calls this directly
no test coverage detected