From 4eb808382d1d8c53f5d0bffc18b16bf911fe96d2 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 12 Nov 2019 14:15:40 +0000 Subject: fix incorrectly named func --- reader/reader.go | 2 +- reader/reader_test.go | 2 +- 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) } -- cgit v1.2.3