MCPcopy
hub / github.com/dgraph-io/badger / TestCreateDirs

Function TestCreateDirs

db_test.go:1391–1401  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1389}
1390
1391func TestCreateDirs(t *testing.T) {
1392 dir, err := ioutil.TempDir("", "parent")
1393 require.NoError(t, err)
1394 defer removeDir(dir)
1395
1396 db, err := Open(DefaultOptions(filepath.Join(dir, "badger")))
1397 require.NoError(t, err)
1398 require.NoError(t, db.Close())
1399 _, err = os.Stat(dir)
1400 require.NoError(t, err)
1401}
1402
1403func TestGetSetDeadlock(t *testing.T) {
1404 dir, err := ioutil.TempDir("", "badger-test")

Callers

nothing calls this directly

Calls 4

removeDirFunction · 0.85
OpenFunction · 0.85
DefaultOptionsFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…