aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/reader/db_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-07-22 15:15:45 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-07-22 15:15:45 +0100
commitd2d94cfb6e7c676ad9f709641b86417c17093657 (patch)
treea1afa69dc1dad37743a21f5903e28c12202caa96 /pkg/reader/db_test.go
parentfaddb47d97e0d2bcc9742a8e57d2475f9d4a3707 (diff)
got rid of db package and put everything in reader
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)
}