summaryrefslogtreecommitdiff
path: root/stream_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-02-15 00:09:35 +0800
committerxuri <xuri.me@gmail.com>2021-02-15 00:09:35 +0800
commit36b7990d6ba1036823abf7a01ec8cf74509d4910 (patch)
tree118e8a9e0db3d071defb497cd98b2fa85595f7b9 /stream_test.go
parentca6b1577a7d1508e61e7084ee67ab0dd759b305e (diff)
lint issue fixed and new formula function: ATAN, AVERAGE, AVERAGEA, CONCAT, CONCATENATE, COUNT, COUNTBLANK, MAX
Diffstat (limited to 'stream_test.go')
-rw-r--r--stream_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream_test.go b/stream_test.go
index ec7bd08..7c6eb9b 100644
--- a/stream_test.go
+++ b/stream_test.go
@@ -26,7 +26,7 @@ func BenchmarkStreamWriter(b *testing.B) {
streamWriter, _ := file.NewStreamWriter("Sheet1")
for rowID := 10; rowID <= 110; rowID++ {
cell, _ := CoordinatesToCellName(1, rowID)
- streamWriter.SetRow(cell, row)
+ _ = streamWriter.SetRow(cell, row)
}
}
@@ -98,7 +98,7 @@ func TestStreamWriter(t *testing.T) {
file = NewFile()
delete(file.Sheet, "xl/worksheets/sheet1.xml")
file.XLSX["xl/worksheets/sheet1.xml"] = MacintoshCyrillicCharset
- streamWriter, err = file.NewStreamWriter("Sheet1")
+ _, err = file.NewStreamWriter("Sheet1")
assert.EqualError(t, err, "xml decode error: XML syntax error on line 1: invalid UTF-8")
}