Skip to content

Commit 092f16c

Browse files
authored
Merge pull request qax-os#352 from caozhiyi/master
update go test and function docs
2 parents 164a3e1 + b974df4 commit 092f16c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

excelize_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,9 @@ func TestRowVisibility(t *testing.T) {
846846

847847
xlsx.SetRowVisible("Sheet3", 2, false)
848848
xlsx.SetRowVisible("Sheet3", 2, true)
849+
xlsx.SetRowVisible("Sheet3", 0, true)
849850
xlsx.GetRowVisible("Sheet3", 2)
851+
xlsx.GetRowVisible("Sheet3", 0)
850852

851853
assert.NoError(t, xlsx.SaveAs(filepath.Join("test", "TestRowVisibility.xlsx")))
852854
}
@@ -1244,7 +1246,9 @@ func TestOutlineLevel(t *testing.T) {
12441246
xlsx.SetColWidth("Sheet2", "A", "D", 13)
12451247
xlsx.SetColOutlineLevel("Sheet2", "B", 2)
12461248
xlsx.SetRowOutlineLevel("Sheet1", 2, 1)
1249+
xlsx.SetRowOutlineLevel("Sheet1", 0, 1)
12471250
xlsx.GetRowOutlineLevel("Sheet1", 2)
1251+
xlsx.GetRowOutlineLevel("Sheet1", 0)
12481252
err := xlsx.SaveAs(filepath.Join("test", "TestOutlineLevel.xlsx"))
12491253
if !assert.NoError(t, err) {
12501254
t.FailNow()

rows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ func (f *File) GetRowOutlineLevel(sheet string, row int) uint8 {
352352
return xlsx.SheetData.Row[row-1].OutlineLevel
353353
}
354354

355-
// RemoveRow2 provides a function to remove single row by given worksheet name
355+
// RemoveRow provides a function to remove single row by given worksheet name
356356
// and Excel row number. For example, remove row 3 in Sheet1:
357357
//
358358
// xlsx.RemoveRow("Sheet1", 3)

rows_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ func TestRows(t *testing.T) {
4242
t.FailNow()
4343
}
4444
}
45+
46+
r := Rows{}
47+
r.Columns()
4548
}
4649

4750
func TestRowsError(t *testing.T) {

0 commit comments

Comments
 (0)