diff options
author | xuri <xuri.me@gmail.com> | 2021-07-05 00:03:56 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-07-05 00:03:56 +0800 |
commit | 544ef18a8cb9949fcb8833c6d2816783c90f3318 (patch) | |
tree | 88bb3eaa9d92522d3b5c4eeb052210c26bc4c99f /comment_test.go | |
parent | 0e02329bedf6648259fd219642bb907bdb07fd21 (diff) |
- Support concurrency iterate rows and columns
- Rename exported field `File.XLSX` to `File.Pkg`
- Exported error message
Diffstat (limited to 'comment_test.go')
-rw-r--r-- | comment_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/comment_test.go b/comment_test.go index 19b705f..f1b60dc 100644 --- a/comment_test.go +++ b/comment_test.go @@ -36,7 +36,7 @@ func TestAddComments(t *testing.T) { } f.Comments["xl/comments2.xml"] = nil - f.XLSX["xl/comments2.xml"] = []byte(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><authors><author>Excelize: </author></authors><commentList><comment ref="B7" authorId="0"><text><t>Excelize: </t></text></comment></commentList></comments>`) + f.Pkg.Store("xl/comments2.xml", []byte(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><authors><author>Excelize: </author></authors><commentList><comment ref="B7" authorId="0"><text><t>Excelize: </t></text></comment></commentList></comments>`)) comments := f.GetComments() assert.EqualValues(t, 2, len(comments["Sheet1"])) assert.EqualValues(t, 1, len(comments["Sheet2"])) @@ -46,14 +46,14 @@ func TestAddComments(t *testing.T) { func TestDecodeVMLDrawingReader(t *testing.T) { f := NewFile() path := "xl/drawings/vmlDrawing1.xml" - f.XLSX[path] = MacintoshCyrillicCharset + f.Pkg.Store(path, MacintoshCyrillicCharset) f.decodeVMLDrawingReader(path) } func TestCommentsReader(t *testing.T) { f := NewFile() path := "xl/comments1.xml" - f.XLSX[path] = MacintoshCyrillicCharset + f.Pkg.Store(path, MacintoshCyrillicCharset) f.commentsReader(path) } |