diff options
author | xuri <xuri.me@gmail.com> | 2022-05-31 11:05:10 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-05-31 11:14:42 +0800 |
commit | 8fde918d981e9229b43fc6045b259a1db31cf1f4 (patch) | |
tree | 2060ee6f1416f01f1a3b0c0c205d5f4837293f8e /stream_test.go | |
parent | 7a6d5f5ebe5fa9b74ec58b79baf79b369d496e21 (diff) |
This update docs and tests for workbook encryption
Diffstat (limited to 'stream_test.go')
-rw-r--r-- | stream_test.go | 2 |
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()) } |