aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/reader/db_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-07-22 17:02:41 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-07-22 17:02:41 +0100
commitc3d4c6bb51a3d7b89e0fcbb69230db423577ae17 (patch)
tree4ee56ca481c865634cf810db3fa0ec0eb78187d0 /pkg/reader/db_test.go
parentd2d94cfb6e7c676ad9f709641b86417c17093657 (diff)
reconfigured opts
Diffstat (limited to 'pkg/reader/db_test.go')
-rw-r--r--pkg/reader/db_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/reader/db_test.go b/pkg/reader/db_test.go
index 5c33343..5a96485 100644
--- a/pkg/reader/db_test.go
+++ b/pkg/reader/db_test.go
@@ -34,7 +34,12 @@ func TestDatamapGoesIntoDB(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- err = DatamapToDB("./testdata/test.db", d, "First Datamap", "./testdata/test.db")
+ opts := Opts{
+ DBPath: "./testdata/test.db",
+ Name: "First Datamap",
+ DMData: d,
+ }
+ err = DatamapToDB(opts)
if err != nil {
t.Errorf("Unable to write datamap to database file because %v.", err)
}