aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/db/setup_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-07-20 21:16:15 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-07-20 21:16:15 +0100
commitebc5ed4a760a51772b1e6255dd0c7dd7a641c2bb (patch)
tree0274f857f525de6d6769df6a7aa7eb5232a2f785 /pkg/db/setup_test.go
parent9f5398b1aa338404403c8de4f48d343a90fe2428 (diff)
cleaned up comments with old code
Diffstat (limited to '')
-rw-r--r--pkg/db/setup_test.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/pkg/db/setup_test.go b/pkg/db/setup_test.go
index a8868ed..b3231fc 100644
--- a/pkg/db/setup_test.go
+++ b/pkg/db/setup_test.go
@@ -31,34 +31,7 @@ func TestOpenSQLiteFile(t *testing.T) {
}
}
-// TODO:
-// THIS IS WHAT I WANT TO DO WITH A TRANNY
-// https://github.com/mattn/go-sqlite3/blob/master/_example/simple/simple.go
-// In the production code of course.
-
-// tx, err := db.Begin()
-// if err != nil {
-// log.Fatal(err)
-// }
-// stmt, err := tx.Prepare("insert into foo(id, name) values(?, ?)")
-// if err != nil {
-// log.Fatal(err)
-// }
-// defer stmt.Close()
-// for i := 0; i < 100; i++ {
-// _, err = stmt.Exec(i, fmt.Sprintf("こんにちわ世界%03d", i))
-// if err != nil {
-// log.Fatal(err)
-// }
-// }
-// tx.Commit()
-
func TestDatamapGoesIntoDB(t *testing.T) {
- // db, err := SetupDB("./testdata/test.db") // we set up, then just open it.
- // defer db.Close()
- // if err != nil {
- // t.Fatal("Expected to be able to set up the database.")
- // }
d, err := reader.ReadDML("./testdata/datamap.csv")
if err != nil {
t.Fatal(err)