diff options
author | Tim O'Brien <tim@tekao.net> | 2013-09-18 19:56:03 +1200 |
---|---|---|
committer | Tim O'Brien <tim@tekao.net> | 2013-09-18 19:56:03 +1200 |
commit | a2f69308b3b5660be4f7c404fabaf1f024c63b46 (patch) | |
tree | 5288bec034056372e26b698a2dd06ca5f8f15d1c /sqlite3_test.go | |
parent | Merge pull request #83 from dajohi/master (diff) | |
download | golite-a2f69308b3b5660be4f7c404fabaf1f024c63b46.tar.gz golite-a2f69308b3b5660be4f7c404fabaf1f024c63b46.tar.xz |
Add benchmark tests. As used by other database/sql drivers.
Diffstat (limited to 'sqlite3_test.go')
-rw-r--r-- | sqlite3_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
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) { |