Skip to content

Commit

Permalink
Merge pull request qax-os#352 from caozhiyi/master
Browse files Browse the repository at this point in the history
update go test and function docs
  • Loading branch information
xuri authored Mar 7, 2019
2 parents 164a3e1 + b974df4 commit 092f16c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions excelize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
}
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion rows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions rows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ func TestRows(t *testing.T) {
t.FailNow()
}
}

r := Rows{}
r.Columns()
}

func TestRowsError(t *testing.T) {
Expand Down

0 comments on commit 092f16c

Please sign in to comment.