This commit is contained in:
Nuno Cruces
2023-02-10 16:42:49 +00:00
parent eaf7cf57fd
commit a33b8d3459
10 changed files with 287 additions and 28 deletions

View File

@@ -0,0 +1,15 @@
package compile_empty
import (
"testing"
"github.com/ncruces/go-sqlite3"
)
func TestCompile_empty(t *testing.T) {
sqlite3.Binary = []byte("\x00asm\x01\x00\x00\x00")
_, err := sqlite3.Open(":memory:")
if err == nil {
t.Error("want error")
}
}

View File

@@ -0,0 +1,15 @@
package compile_empty
import (
"testing"
"github.com/ncruces/go-sqlite3"
)
func TestCompile_empty(t *testing.T) {
sqlite3.Path = "sqlite3.wasm"
_, err := sqlite3.Open(":memory:")
if err == nil {
t.Error("want error")
}
}