diff options
author | xuri <xuri.me@gmail.com> | 2020-05-29 00:26:40 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-05-29 00:26:40 +0800 |
commit | 2ae631376b95ff0a59ea18c2c0befcd50135b020 (patch) | |
tree | c3542c127aed38cac104c513047327d6316b91d1 /excelize_test.go | |
parent | c168233e70db8f220bd07d9d6d277ae9e2a4a73f (diff) |
add limits for total columns, row and filename length
Diffstat (limited to 'excelize_test.go')
-rw-r--r-- | excelize_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/excelize_test.go b/excelize_test.go index 5b65109..b31e1c8 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -166,6 +166,7 @@ func TestOpenFile(t *testing.T) { assert.NoError(t, f.SetCellStr("Sheet2", "c"+strconv.Itoa(i), strconv.Itoa(i))) } assert.NoError(t, f.SaveAs(filepath.Join("test", "TestOpenFile.xlsx"))) + assert.EqualError(t, f.SaveAs(filepath.Join("test", strings.Repeat("c", 199), ".xlsx")), "file name length exceeds maximum limit") } func TestSaveFile(t *testing.T) { |