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

Function addDelEdgeToUID

posting/index_test.go:234–246  ·  view source on GitHub ↗
(t *testing.T, attr string, src uint64,
	dst uint64, startTs, commitTs uint64)

Source from the content-addressed store, hash-verified

232}
233
234func addDelEdgeToUID(t *testing.T, attr string, src uint64,
235 dst uint64, startTs, commitTs uint64) {
236 edge := &pb.DirectedEdge{
237 ValueId: dst,
238 Attr: attr,
239 Entity: src,
240 Op: pb.DirectedEdge_DEL,
241 }
242 l, err := GetNoStore(x.DataKey(attr, src), startTs)
243 require.NoError(t, err)
244 // No index entries added here as we do not call AddMutationWithIndex.
245 addMutation(t, l, edge, Del, startTs, commitTs, false)
246}
247
248// addEdgeToUID adds uid edge with reverse edge
249func addEdgeToUID(t *testing.T, attr string, src uint64,

Callers 1

Calls 3

DataKeyFunction · 0.92
GetNoStoreFunction · 0.85
addMutationFunction · 0.70

Tested by

no test coverage detected