summaryrefslogtreecommitdiff
path: root/file_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-09-18 23:20:24 +0800
committerxuri <xuri.me@gmail.com>2021-09-19 11:06:54 +0800
commit790c363cceaaa09e91ad579e2d25cb13c1582bba (patch)
treeb5747f30edeac96a7fdadec574f1a5b1d332ca18 /file_test.go
parent2add938798cdd1456616869298319528b0c76913 (diff)
This closes #833, closes #845, and closes #1022, breaking changes
- Close spreadsheet and row's iterator required - New options `WorksheetUnzipMemLimit` have been added - Improve streaming reading performance, memory usage decrease about 93.7%
Diffstat (limited to 'file_test.go')
-rw-r--r--file_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/file_test.go b/file_test.go
index 956ff92..ee5d322 100644
--- a/file_test.go
+++ b/file_test.go
@@ -9,6 +9,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
)
func BenchmarkWrite(b *testing.B) {
@@ -62,3 +63,9 @@ func TestWriteTo(t *testing.T) {
assert.Nil(t, err)
}
}
+
+func TestClose(t *testing.T) {
+ f := NewFile()
+ f.tempFiles.Store("/d/", "/d/")
+ require.Error(t, f.Close())
+}