aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/datamaps/reader_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-07-26 20:39:18 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-07-26 20:39:18 +0100
commitb059e3ffb9a37fc0a941458d2cd143fad67a105f (patch)
tree30e851f20ae50e56694071a7ae34b6e70cf47cb1 /pkg/datamaps/reader_test.go
parent44a88a96c5f27a342275b3c43b277c7881f69b22 (diff)
lots of tidy
Diffstat (limited to 'pkg/datamaps/reader_test.go')
-rw-r--r--pkg/datamaps/reader_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/datamaps/reader_test.go b/pkg/datamaps/reader_test.go
index 79d636e..e5f2c98 100644
--- a/pkg/datamaps/reader_test.go
+++ b/pkg/datamaps/reader_test.go
@@ -72,7 +72,7 @@ func TestReadXLSX(t *testing.T) {
// func TestExtractWithDBDatamap(t *testing.T) {
// // setup - we need the datamap in the test database
-// db, err := SetupDB("./testdata/test.db")
+// db, err := setupDB("./testdata/test.db")
// defer db.Close()
// if err != nil {
@@ -89,12 +89,12 @@ func TestReadXLSX(t *testing.T) {
// t.Errorf("Unable to write datamap to database file because %v.", err)
// }
-// d := ExtractDBDM("First Datamap", "testdata/test_template.xlsx")
+// d := ExtractDBDatamap("First Datamap", "testdata/test_template.xlsx")
// }
func TestDMLSliceFromDatabase(t *testing.T) {
// setup - we need the datamap in the test database
- db, err := SetupDB("./testdata/test.db")
+ db, err := setupDB("./testdata/test.db")
defer db.Close()
if err != nil {
@@ -141,7 +141,7 @@ func TestDMLSliceFromDatabase(t *testing.T) {
func TestExtractUsingDBDM(t *testing.T) {
// setup - we need the datamap in the test database
- db, err := SetupDB("./testdata/test.db")
+ db, err := setupDB("./testdata/test.db")
defer db.Close()
if err != nil {
@@ -158,7 +158,7 @@ func TestExtractUsingDBDM(t *testing.T) {
t.Errorf("Unable to write datamap to database file because %v.", err)
}
- d, _ := ExtractDBDM("First Datamap", "testdata/test_template.xlsx", db)
+ d, _ := ExtractDBDatamap("First Datamap", "testdata/test_template.xlsx", db)
cases := []struct {
sheet, cellref, val string
}{