aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/reader/db_test.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkg/reader/db_test.go (renamed from pkg/db/setup_test.go)8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkg/db/setup_test.go b/pkg/reader/db_test.go
index b3231fc..5c33343 100644
--- a/pkg/db/setup_test.go
+++ b/pkg/reader/db_test.go
@@ -1,9 +1,7 @@
-package db
+package reader
import (
"testing"
-
- "github.com/yulqen/datamaps-go/pkg/reader"
)
func TestOpenSQLiteFile(t *testing.T) {
@@ -32,11 +30,11 @@ func TestOpenSQLiteFile(t *testing.T) {
}
func TestDatamapGoesIntoDB(t *testing.T) {
- d, err := reader.ReadDML("./testdata/datamap.csv")
+ d, err := ReadDML("./testdata/datamap.csv")
if err != nil {
t.Fatal(err)
}
- err = DatamapToDB(d, "First Datamap", "./testdata/test.db")
+ err = DatamapToDB("./testdata/test.db", d, "First Datamap", "./testdata/test.db")
if err != nil {
t.Errorf("Unable to write datamap to database file because %v.", err)
}