aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
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)