aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/datamaps/db_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-07-23 17:02:27 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-07-23 17:02:27 +0100
commit4c8294bcbeb45ce93a74ad963a346cf69ccbc398 (patch)
treea26a6527a7ac15a6d37ba42102a83faec4098bd7 /pkg/datamaps/db_test.go
parent1cd5f295939e25e6af54bf69ae9f551f23c57f23 (diff)
working basics now with no flags package - thanks fzf
Diffstat (limited to 'pkg/datamaps/db_test.go')
-rw-r--r--pkg/datamaps/db_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/datamaps/db_test.go b/pkg/datamaps/db_test.go
index e9d5100..029121c 100644
--- a/pkg/datamaps/db_test.go
+++ b/pkg/datamaps/db_test.go
@@ -30,16 +30,11 @@ func TestOpenSQLiteFile(t *testing.T) {
}
func TestDatamapGoesIntoDB(t *testing.T) {
- d, err := ReadDML("./testdata/datamap.csv")
- if err != nil {
- t.Fatal(err)
- }
opts := Options{
DBPath: "./testdata/test.db",
DMName: "First Datamap",
- DMData: d,
}
- err = DatamapToDB(opts)
+ err := DatamapToDB(&opts)
if err != nil {
t.Errorf("Unable to write datamap to database file because %v.", err)
}