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

Function cleanup

graphql/testdata/custom_bench/profiling/graphql_profiler.go:180–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178}
179
180func cleanup() error {
181 log.Println("Starting cleanup ...")
182 // just remove the temp dir
183 if err := exec.Command("rm", "-rf", tempDir).Run(); err != nil {
184 return err
185 }
186 log.Println("Finished cleanup.\n")
187 return nil
188}
189
190func startHostDgraphForProfiling(benchmarkDirName string) (*os.Process, *os.Process, error) {
191 log.Println("Starting Dgraph on host ...")

Callers 15

TestCheckUpgradeFunction · 0.85
TestQueryDuplicateNodesFunction · 0.85
TestNamespacesFunction · 0.85
TestDropNamespaceErrFunction · 0.85
TestDropAllFunction · 0.85
TestDropDataFunction · 0.85
TestDropPredicateFunction · 0.85
TestDropTypeFunction · 0.85
runImportTestFunction · 0.85
waitForAlphaReadyFunction · 0.85

Calls 1

RunMethod · 0.45

Tested by 15

TestCheckUpgradeFunction · 0.68
TestQueryDuplicateNodesFunction · 0.68
TestNamespacesFunction · 0.68
TestDropNamespaceErrFunction · 0.68
TestDropAllFunction · 0.68
TestDropDataFunction · 0.68
TestDropPredicateFunction · 0.68
TestDropTypeFunction · 0.68
runImportTestFunction · 0.68
waitForAlphaReadyFunction · 0.68