aboutsummaryrefslogtreecommitdiffstats
path: root/reader
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-11-12 14:15:40 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-11-12 14:15:40 +0000
commit4eb808382d1d8c53f5d0bffc18b16bf911fe96d2 (patch)
tree28bd8d853cd2b452f054b6fe6e7e964e09ea4b81 /reader
parente9eefc2249ebd7de9cd0e2ed3afb72bcc362e62b (diff)
fix incorrectly named func
Diffstat (limited to 'reader')
-rw-r--r--reader/reader.go2
-rw-r--r--reader/reader_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/reader/reader.go b/reader/reader.go
index f9abb07..e0c3f66 100644
--- a/reader/reader.go
+++ b/reader/reader.go
@@ -120,7 +120,7 @@ func cols(n int) []string {
//ReadXLSToMap returns the file's data as a map,
// keyed on sheet name. All values are returned as strings.
// Paths to a datamap and the spreadsheet file required.
-func ReadXLS(dm string, ssheet string) FileData {
+func ReadXLSX(dm string, ssheet string) FileData {
// TODO - to implement filtering by Datamap,
// pull the data first, then go through each
diff --git a/reader/reader_test.go b/reader/reader_test.go
index d79de14..36dd8f1 100644
--- a/reader/reader_test.go
+++ b/reader/reader_test.go
@@ -87,7 +87,7 @@ func TestGetSheetsFromDM(t *testing.T) {
}
func TestReadXLSX(t *testing.T) {
- d := ReadXLS("testdata/datamap.csv", "testdata/test_template.xlsx")
+ d := ReadXLSX("testdata/datamap.csv", "testdata/test_template.xlsx")
if d["Summary"]["A2"].Value != "Date:" {
t.Errorf("Expected A2 in Summary sheet to be 'Date:' - instead it is %s", d["Summary"]["A2"].Value)
}