MCPcopy
hub / github.com/dgraph-io/dgraph / TestMultiPartListBasic

Function TestMultiPartListBasic

posting/list_test.go:1210–1220  ·  view source on GitHub ↗

Create a multi-part list and verify all the uids are there.

(t *testing.T)

Source from the content-addressed store, hash-verified

1208
1209// Create a multi-part list and verify all the uids are there.
1210func 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.
1223func TestBinSplit(t *testing.T) {

Callers

nothing calls this directly

Calls 2

createMultiPartListFunction · 0.85
UidsMethod · 0.45

Tested by

no test coverage detected