MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / dropPredicate

Function dropPredicate

query/common_test.go:38–45  ·  view source on GitHub ↗
(pred string)

Source from the content-addressed store, hash-verified

36}
37
38func dropPredicate(pred string) {
39 err := client.Alter(context.Background(), &api.Operation{
40 DropAttr: pred,
41 })
42 if err != nil {
43 panic(fmt.Sprintf("Could not drop predicate. Got error %v", err.Error()))
44 }
45}
46
47func processQuery(ctx context.Context, t *testing.T, query string) (string, error) {
48 txn := client.NewTxn()

Callers 4

TestDeleteAndReadIndexFunction · 0.70
TestDeleteAndReadCountFunction · 0.70
TestDeleteAndReadReverseFunction · 0.70
TestDropPredicateFunction · 0.70

Calls 2

AlterMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected