From 544ef18a8cb9949fcb8833c6d2816783c90f3318 Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 5 Jul 2021 00:03:56 +0800 Subject: - Support concurrency iterate rows and columns - Rename exported field `File.XLSX` to `File.Pkg` - Exported error message --- comment_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'comment_test.go') 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(`Excelize: Excelize: `) + f.Pkg.Store("xl/comments2.xml", []byte(`Excelize: Excelize: `)) 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) } -- cgit v1.2.1