Set experimental option ExistDir

This commit is contained in:
Sergey Romanov
2015-11-21 22:57:59 +05:00
parent 94c595be43
commit 9be99d20fb
2 changed files with 17 additions and 1 deletions

View File

@@ -48,6 +48,14 @@ func TestNew(t *testing.T) {
}
}
// Checking opening exist dir
func TestNewExist(t *testing.T) {
var err error
if db, err = New(database, &Options{ExistDir: true}); err != nil {
panic(err)
}
}
//
func TestWriteAndRead(t *testing.T) {