MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / TestEmptyConnStr

Function TestEmptyConnStr

dgraph/cmd/dgraphimport/import_test.go:63–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

61}`
62
63func TestEmptyConnStr(t *testing.T) {
64 err := Import(context.Background(), "", "/tmp")
65 require.Error(t, err)
66 require.ErrorContains(t, err, "connection string cannot be empty")
67}
68
69func TestEmptyBulkOutDir(t *testing.T) {
70 err := Import(context.Background(), "dgraph://localhost:9080", "")

Callers

nothing calls this directly

Calls 2

ImportFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected