From a2f69308b3b5660be4f7c404fabaf1f024c63b46 Mon Sep 17 00:00:00 2001 From: Tim O'Brien Date: Wed, 18 Sep 2013 19:56:03 +1200 Subject: Add benchmark tests. As used by other database/sql drivers. --- sqlite3_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sqlite3_test.go') diff --git a/sqlite3_test.go b/sqlite3_test.go index 55536e8..bcbba44 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -1,6 +1,7 @@ package sqlite3 import ( + "./sqltest" "crypto/rand" "database/sql" "encoding/hex" @@ -626,6 +627,16 @@ func TestWAL(t *testing.T) { } } +func TestSuite(t *testing.T) { + db, err := sql.Open("sqlite3", ":memory:") + if err != nil { + t.Fatal(err) + } + defer db.Close() + + sqltest.RunTests(t, db, sqltest.SQLITE) +} + // TODO: Execer & Queryer currently disabled // https://github.com/mattn/go-sqlite3/issues/82 //func TestExecer(t *testing.T) { -- cgit v1.2.3