Create a multi-part list and verify all the uids are there.
(t *testing.T)
| 1208 | |
| 1209 | // Create a multi-part list and verify all the uids are there. |
| 1210 | func TestMultiPartListBasic(t *testing.T) { |
| 1211 | size := int(1e5) |
| 1212 | ol, commits := createMultiPartList(t, size, false) |
| 1213 | opt := ListOptions{ReadTs: uint64(size) + 1} |
| 1214 | l, err := ol.Uids(opt) |
| 1215 | require.NoError(t, err) |
| 1216 | require.Equal(t, commits, len(l.Uids), "List of Uids received: %+v", l.Uids) |
| 1217 | for i, uid := range l.Uids { |
| 1218 | require.Equal(t, uint64(i+1), uid) |
| 1219 | } |
| 1220 | } |
| 1221 | |
| 1222 | // Checks if the binSplit works correctly. |
| 1223 | func TestBinSplit(t *testing.T) { |
nothing calls this directly
no test coverage detected