summaryrefslogtreecommitdiff
path: root/file_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'file_test.go')
-rw-r--r--file_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/file_test.go b/file_test.go
index 97ff720..8c5050c 100644
--- a/file_test.go
+++ b/file_test.go
@@ -12,18 +12,17 @@ func BenchmarkWrite(b *testing.B) {
for col := 1; col <= 20; col++ {
val, err := CoordinatesToCellName(col, row)
if err != nil {
- panic(err)
+ b.Error(err)
}
if err := f.SetCellDefault("Sheet1", val, s); err != nil {
- panic(err)
+ b.Error(err)
}
}
}
// Save xlsx file by the given path.
err := f.SaveAs("./test.xlsx")
if err != nil {
- panic(err)
+ b.Error(err)
}
}
-
}