DropAll drops all the data in the Dgraph instance associated with the given client.
(t *testing.T, dg *dgo.Dgraph)
| 369 | |
| 370 | // DropAll drops all the data in the Dgraph instance associated with the given client. |
| 371 | func 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. |