summaryrefslogtreecommitdiff
path: root/stream_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-05-31 11:05:10 +0800
committerxuri <xuri.me@gmail.com>2022-05-31 11:14:42 +0800
commit8fde918d981e9229b43fc6045b259a1db31cf1f4 (patch)
tree2060ee6f1416f01f1a3b0c0c205d5f4837293f8e /stream_test.go
parent7a6d5f5ebe5fa9b74ec58b79baf79b369d496e21 (diff)
This update docs and tests for workbook encryption
Diffstat (limited to 'stream_test.go')
-rw-r--r--stream_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream_test.go b/stream_test.go
index 3df898a..9776b38 100644
--- a/stream_test.go
+++ b/stream_test.go
@@ -129,6 +129,8 @@ func TestStreamWriter(t *testing.T) {
}
assert.NoError(t, rows.Close())
assert.Equal(t, 2559558, cells)
+ // Save spreadsheet with password.
+ assert.NoError(t, file.SaveAs(filepath.Join("test", "EncryptionTestStreamWriter.xlsx"), Options{Password: "password"}))
assert.NoError(t, file.Close())
}