diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-07-22 17:02:41 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-07-22 17:02:41 +0100 |
commit | c3d4c6bb51a3d7b89e0fcbb69230db423577ae17 (patch) | |
tree | 4ee56ca481c865634cf810db3fa0ec0eb78187d0 /pkg/reader/db_test.go | |
parent | d2d94cfb6e7c676ad9f709641b86417c17093657 (diff) |
reconfigured opts
Diffstat (limited to '')
-rw-r--r-- | pkg/reader/db_test.go | 7 |
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) } |