From c3d4c6bb51a3d7b89e0fcbb69230db423577ae17 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 22 Jul 2020 17:02:41 +0100 Subject: reconfigured opts --- pkg/reader/db_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkg/reader/db_test.go') 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) } -- cgit v1.2.3