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

Function TestLiveLoadJSONFileEmpty

dgraph/cmd/live/load-json/load_test.go:86–97  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

84}
85
86func TestLiveLoadJSONFileEmpty(t *testing.T) {
87 testutil.DropAll(t, dg)
88
89 pipeline := [][]string{
90 {"echo", "[]"},
91 {testutil.DgraphBinaryPath(), "live",
92 "--schema", testDataDir + "/family.schema", "--files", "/dev/stdin",
93 "--alpha", alphaService, "--creds", "user=groot;password=password;"},
94 }
95 _, err := testutil.Pipeline(pipeline)
96 require.NoError(t, err, "live loading JSON file ran successfully")
97}
98
99func TestLiveLoadJSONFile(t *testing.T) {
100 testutil.DropAll(t, dg)

Callers

nothing calls this directly

Calls 3

DropAllFunction · 0.92
DgraphBinaryPathFunction · 0.92
PipelineFunction · 0.92

Tested by

no test coverage detected