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

Function getOrCreate

worker/worker_test.go:83–87  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

81 require.NoError(t, testutil.RetryMutation(dg, mu))
82}
83func getOrCreate(key []byte) *posting.List {
84 l, err := posting.GetNoStore(key, math.MaxUint64)
85 x.Checkf(err, "While calling posting.Get")
86 return l
87}
88
89func populateGraph(t *testing.T) {
90 // Add uid edges : predicate neightbour.

Callers 2

populateGraphExportFunction · 0.85
populateGraphFunction · 0.85

Calls 2

GetNoStoreFunction · 0.92
CheckfFunction · 0.92

Tested by

no test coverage detected