aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-07-29 16:19:40 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-07-29 16:19:40 +0100
commita418aae9df25c7efc1536fd9dde01ece795d2156 (patch)
treea0703d892e3cda22b38a72e7a237da58505b411f
parentb5bf0770b0737ee8dc1d3d9ca7f26f718beda883 (diff)
added comments
-rw-r--r--pkg/datamaps/db_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/datamaps/db_test.go b/pkg/datamaps/db_test.go
index d692a16..e3e3e05 100644
--- a/pkg/datamaps/db_test.go
+++ b/pkg/datamaps/db_test.go
@@ -75,6 +75,10 @@ func TestDatamapGoesIntoDB(t *testing.T) {
}
}
+// TestImportSimpleTemplate uses importXLSXtoDB() to import data from a
+// populated template and then uses the sqlite3 executible to test the
+// contents of the database. This does not test datamaps functionality
+// in querying data in the database.
func TestImportSimpleTemplate(t *testing.T) {
var tests = []struct {
@@ -125,6 +129,10 @@ func TestImportSimpleTemplate(t *testing.T) {
}
}
+// TestImportToDB uses ImportToDB() to import data from a
+// directory of populated templates and then uses the sqlite3 executible to test the
+// contents of the database. This does not test datamaps functionality
+// in querying data in the database.
func TestImportToDB(t *testing.T) {
var tests = []struct {
filename string