github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/tests/compile/empty/compile_test.go (about)

     1  package compile
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/ncruces/go-sqlite3"
     7  )
     8  
     9  func TestCompile_empty(t *testing.T) {
    10  	sqlite3.Binary = []byte("\x00asm\x01\x00\x00\x00")
    11  	_, err := sqlite3.Open(":memory:")
    12  	if err == nil {
    13  		t.Error("want error")
    14  	}
    15  }