summaryrefslogtreecommitdiff
path: root/sheet_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-12-24 01:09:28 +0800
committerxuri <xuri.me@gmail.com>2019-12-24 01:09:28 +0800
commit1666d04559d9f5b579ab7c850ccc95863c31bd25 (patch)
treee04b4e3b3dc4e42bf87547163f73a970eae85487 /sheet_test.go
parent4e4a5b9b3e052d1694442515492792fb1aa74c5a (diff)
optimization: checking error in unit tests
Diffstat (limited to 'sheet_test.go')
-rw-r--r--sheet_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sheet_test.go b/sheet_test.go
index aada60a..7a58248 100644
--- a/sheet_test.go
+++ b/sheet_test.go
@@ -192,7 +192,7 @@ func TestGetPageLayout(t *testing.T) {
func TestSetHeaderFooter(t *testing.T) {
f := excelize.NewFile()
- f.SetCellStr("Sheet1", "A1", "Test SetHeaderFooter")
+ assert.NoError(t, f.SetCellStr("Sheet1", "A1", "Test SetHeaderFooter"))
// Test set header and footer on not exists worksheet.
assert.EqualError(t, f.SetHeaderFooter("SheetN", nil), "sheet SheetN is not exist")
// Test set header and footer with illegal setting.