summaryrefslogtreecommitdiff
path: root/crypt_test.go
diff options
context:
space:
mode:
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"})