summaryrefslogtreecommitdiff
path: root/crypt_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-10-13 00:02:53 +0800
committerxuri <xuri.me@gmail.com>2022-10-13 00:13:36 +0800
commit7363c1e3337c5f0d9c70cc8af7504b3f8c092ab4 (patch)
treeafe4236975d8144d0ffdd55fef7723b2a0295495 /crypt_test.go
parent0e657c887bf505d62ce3bf685c518cd0ed7bc558 (diff)
Go 1.16 and later required, migration of deprecation package `ioutil`
- Improving performance for stream writer `SetRow` function, reduces memory usage over and speedup about 19% - Update dependencies module - Update GitHub workflow
Diffstat (limited to 'crypt_test.go')
-rw-r--r--crypt_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypt_test.go b/crypt_test.go
index 95b6f52..a4a510e 100644
--- a/crypt_test.go
+++ b/crypt_test.go
@@ -12,7 +12,7 @@
package excelize
import (
- "io/ioutil"
+ "os"
"path/filepath"
"strings"
"testing"
@@ -32,7 +32,7 @@ func TestEncrypt(t *testing.T) {
assert.Equal(t, "SECRET", cell)
assert.NoError(t, f.Close())
// Test decrypt spreadsheet with unsupported encrypt mechanism
- raw, err := ioutil.ReadFile(filepath.Join("test", "encryptAES.xlsx"))
+ raw, err := os.ReadFile(filepath.Join("test", "encryptAES.xlsx"))
assert.NoError(t, err)
raw[2050] = 3
_, err = Decrypt(raw, &Options{Password: "password"})