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

Function DropAll

testutil/client.go:371–374  ·  view source on GitHub ↗

DropAll drops all the data in the Dgraph instance associated with the given client.

(t *testing.T, dg *dgo.Dgraph)

Source from the content-addressed store, hash-verified

369
370// DropAll drops all the data in the Dgraph instance associated with the given client.
371func DropAll(t *testing.T, dg *dgo.Dgraph) {
372 err := dg.Alter(context.Background(), &api.Operation{DropAll: true})
373 require.NoError(t, err)
374}
375
376// VerifyQueryResponse executes the given query and verifies that the response of the query is
377// same as the expected response.

Callers 15

TestLiveLoadUpsertAtOnceFunction · 0.92
TestLiveLoadUpsertFunction · 0.92
TestLiveLoadJsonUidKeepFunction · 0.92
TestLiveLoadRdfUidKeepFunction · 0.92
TestLiveLoadFileNameFunction · 0.92
TestLiveLoadJSONFileFunction · 0.92

Calls 1

AlterMethod · 0.80

Tested by 15

TestLiveLoadUpsertAtOnceFunction · 0.74
TestLiveLoadUpsertFunction · 0.74
TestLiveLoadJsonUidKeepFunction · 0.74
TestLiveLoadRdfUidKeepFunction · 0.74
TestLiveLoadFileNameFunction · 0.74
TestLiveLoadJSONFileFunction · 0.74