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 /drawing_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 'drawing_test.go')
-rw-r--r-- | drawing_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drawing_test.go b/drawing_test.go index 3c0b619..f2413cf 100644 --- a/drawing_test.go +++ b/drawing_test.go @@ -19,10 +19,10 @@ import ( func TestDrawingParser(t *testing.T) { f := File{ Drawings: sync.Map{}, - XLSX: map[string][]byte{ - "charset": MacintoshCyrillicCharset, - "wsDr": []byte(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"><xdr:oneCellAnchor><xdr:graphicFrame/></xdr:oneCellAnchor></xdr:wsDr>`)}, + Pkg: sync.Map{}, } + f.Pkg.Store("charset", MacintoshCyrillicCharset) + f.Pkg.Store("wsDr", []byte(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"><xdr:oneCellAnchor><xdr:graphicFrame/></xdr:oneCellAnchor></xdr:wsDr>`)) // Test with one cell anchor f.drawingParser("wsDr") // Test with unsupported charset |