This commit is contained in:
Nuno Cruces
2024-08-12 17:50:23 +01:00
parent e92999bfe3
commit bd141fec92
3 changed files with 13 additions and 2 deletions

View File

@@ -17,6 +17,18 @@ import (
"github.com/ncruces/go-sqlite3/vfs/memdb"
)
func Test_Open_error(t *testing.T) {
t.Parallel()
_, err := Open("", nil, nil, nil)
if err == nil {
t.Error("want error")
}
if !errors.Is(err, sqlite3.MISUSE) {
t.Errorf("got %v, want sqlite3.MISUSE", err)
}
}
func Test_Open_dir(t *testing.T) {
t.Parallel()