summaryrefslogtreecommitdiff
path: root/file_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 /file_test.go
parent4e4a5b9b3e052d1694442515492792fb1aa74c5a (diff)
optimization: checking error in unit tests
Diffstat (limited to 'file_test.go')
-rw-r--r--file_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/file_test.go b/file_test.go
index 6c30f4a..97ff720 100644
--- a/file_test.go
+++ b/file_test.go
@@ -14,7 +14,9 @@ func BenchmarkWrite(b *testing.B) {
if err != nil {
panic(err)
}
- f.SetCellDefault("Sheet1", val, s)
+ if err := f.SetCellDefault("Sheet1", val, s); err != nil {
+ panic(err)
+ }
}
}
// Save xlsx file by the given path.