diff options
author | xuri <xuri.me@gmail.com> | 2022-01-19 00:51:09 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-01-19 00:51:09 +0800 |
commit | 74f6ea94eae45c8fb89a23cc94802e57ce279a84 (patch) | |
tree | f27a05419c57c3ecb89b8fd84df1ed1e5121eb05 /cell_test.go | |
parent | 4daa6ed0b46fdd994e46403feb049b162eca19b8 (diff) |
ref #1054, breaking change for the column and row's iterator
This removed 3 exported functions: `TotalCols`, `CurrentCol` and `CurrentRow`
Diffstat (limited to 'cell_test.go')
-rw-r--r-- | cell_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cell_test.go b/cell_test.go index b3bb997..8d00e2d 100644 --- a/cell_test.go +++ b/cell_test.go @@ -682,8 +682,10 @@ func TestSharedStringsError(t *testing.T) { rows, err := f.Rows("Sheet1") assert.NoError(t, err) const maxUint16 = 1<<16 - 1 + currentRow := 0 for rows.Next() { - if rows.CurrentRow() == 19 { + currentRow++ + if currentRow == 19 { _, err := rows.Columns() assert.NoError(t, err) // Test get cell value from string item with invalid offset @@ -705,8 +707,10 @@ func TestSharedStringsError(t *testing.T) { assert.NoError(t, err) rows, err = f.Rows("Sheet1") assert.NoError(t, err) + currentRow = 0 for rows.Next() { - if rows.CurrentRow() == 19 { + currentRow++ + if currentRow == 19 { _, err := rows.Columns() assert.NoError(t, err) break |