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

Function splitPreds

dgraph/cmd/alpha/upsert_test.go:32–38  ·  view source on GitHub ↗
(ps []string)

Source from the content-addressed store, hash-verified

30}
31
32func splitPreds(ps []string) []string {
33 for i, p := range ps {
34 ps[i] = x.ParseAttr(strings.SplitN(p, "-", 2)[1])
35 }
36
37 return ps
38}
39
40func TestUpsertExample0(t *testing.T) {
41 require.NoError(t, dropAll())

Callers 15

TestUpsertExample0Function · 0.85
TestUpsertExample0JSONFunction · 0.85
TestUpsertNoVarErrFunction · 0.85
TestUpsertWithFragmentFunction · 0.85
TestUpsertMultiValueFunction · 0.85
TestMultipleMutationFunction · 0.85
TestMultiMutationCountFunction · 0.85

Calls 1

ParseAttrFunction · 0.92

Tested by

no test coverage detected