From ebc5ed4a760a51772b1e6255dd0c7dd7a641c2bb Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 20 Jul 2020 21:16:15 +0100 Subject: cleaned up comments with old code --- pkg/db/setup_test.go | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'pkg/db/setup_test.go') 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) -- cgit v1.2.3