diff options
author | xuri <xuri.me@gmail.com> | 2021-02-05 22:52:31 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-02-05 22:52:31 +0800 |
commit | 2fb135bc94bbb0c487563d166fd24786fab7280a (patch) | |
tree | eaa8a669727c8b83c3910c0511aa4dbf4cdf9bf5 /col_test.go | |
parent | 66d85dae1367c106acd373baa5087e4bd712e3f9 (diff) |
handle end element event in the worksheet row/column iterator XML SAX parser
Diffstat (limited to 'col_test.go')
-rw-r--r-- | col_test.go | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/col_test.go b/col_test.go index 532f428..97c4b7f 100644 --- a/col_test.go +++ b/col_test.go @@ -148,10 +148,20 @@ func TestColsRows(t *testing.T) { }, } - cols.stashCol, cols.curCol = 0, 1 + f = NewFile() + f.XLSX["xl/worksheets/sheet1.xml"] = nil + cols, err = f.Cols("Sheet1") + if !assert.NoError(t, err) { + t.FailNow() + } + f = NewFile() cols, err = f.Cols("Sheet1") + if !assert.NoError(t, err) { + t.FailNow() + } + _, err = cols.Rows() assert.NoError(t, err) - + cols.stashCol, cols.curCol = 0, 1 // Test if token is nil cols.sheetXML = nil _, err = cols.Rows() |