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

Function copyToLocalFs

systest/export/export_test.go:242–246  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

240}
241
242func copyToLocalFs(t *testing.T) {
243 require.NoError(t, os.RemoveAll(copyExportDir))
244 srcPath := testutil.DockerPrefix + "_alpha1_1:/data/export-data"
245 require.NoError(t, testutil.DockerCp(srcPath, copyExportDir))
246}
247
248func loadData(t *testing.T, dir, format string) {
249 schemaFile := dir + "/g01.schema.gz"

Callers 2

TestExportAndLoadJsonFunction · 0.70

Calls 2

DockerCpFunction · 0.92
RemoveAllMethod · 0.80

Tested by

no test coverage detected