Don't try to build sqlite when cgo isn't enabled

Signed-off-by: A Gardner <3100188+actgardner@users.noreply.github.com>
This commit is contained in:
A Gardner
2020-11-17 17:44:20 -05:00
parent 71bbbee075
commit 19d7edd530
6 changed files with 69 additions and 46 deletions

View File

@@ -85,10 +85,6 @@ func testDB(t *testing.T, o opener, withTransactions bool) {
}
}
func TestSQLite3(t *testing.T) {
testDB(t, &SQLite3{":memory:"}, false)
}
func getenv(key, defaultVal string) string {
if val := os.Getenv(key); val != "" {
return val