diff options
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) } |