diff options
author | xuri <xuri.me@gmail.com> | 2019-03-07 16:26:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 16:26:15 +0800 |
commit | 092f16c744c40e85be5cf6128dfb35c96e7df78b (patch) | |
tree | 10e39157adafc565bc8c54ce25b83d0cf0a950b3 | |
parent | 164a3e126aafd1b5652d9da60ae2ba2240d412eb (diff) | |
parent | b974df402a70364ec9b39360b5e1f6722d36a857 (diff) |
Merge pull request #352 from caozhiyi/master
update go test and function docs
-rw-r--r-- | excelize_test.go | 4 | ||||
-rw-r--r-- | rows.go | 2 | ||||
-rw-r--r-- | rows_test.go | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/excelize_test.go b/excelize_test.go index abee199..47b9561 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -846,7 +846,9 @@ func TestRowVisibility(t *testing.T) { xlsx.SetRowVisible("Sheet3", 2, false) xlsx.SetRowVisible("Sheet3", 2, true) + xlsx.SetRowVisible("Sheet3", 0, true) xlsx.GetRowVisible("Sheet3", 2) + xlsx.GetRowVisible("Sheet3", 0) assert.NoError(t, xlsx.SaveAs(filepath.Join("test", "TestRowVisibility.xlsx"))) } @@ -1244,7 +1246,9 @@ func TestOutlineLevel(t *testing.T) { xlsx.SetColWidth("Sheet2", "A", "D", 13) xlsx.SetColOutlineLevel("Sheet2", "B", 2) xlsx.SetRowOutlineLevel("Sheet1", 2, 1) + xlsx.SetRowOutlineLevel("Sheet1", 0, 1) xlsx.GetRowOutlineLevel("Sheet1", 2) + xlsx.GetRowOutlineLevel("Sheet1", 0) err := xlsx.SaveAs(filepath.Join("test", "TestOutlineLevel.xlsx")) if !assert.NoError(t, err) { t.FailNow() @@ -352,7 +352,7 @@ func (f *File) GetRowOutlineLevel(sheet string, row int) uint8 { return xlsx.SheetData.Row[row-1].OutlineLevel } -// RemoveRow2 provides a function to remove single row by given worksheet name +// RemoveRow provides a function to remove single row by given worksheet name // and Excel row number. For example, remove row 3 in Sheet1: // // xlsx.RemoveRow("Sheet1", 3) diff --git a/rows_test.go b/rows_test.go index 26fcb47..b83d377 100644 --- a/rows_test.go +++ b/rows_test.go @@ -42,6 +42,9 @@ func TestRows(t *testing.T) { t.FailNow() } } + + r := Rows{} + r.Columns() } func TestRowsError(t *testing.T) { |