From 8fde918d981e9229b43fc6045b259a1db31cf1f4 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 31 May 2022 11:05:10 +0800 Subject: This update docs and tests for workbook encryption --- stream_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stream_test.go') 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()) } -- cgit v1.2.1