summaryrefslogtreecommitdiff
path: root/drawing_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-07-04 12:13:06 +0800
committerxuri <xuri.me@gmail.com>2021-07-04 12:13:06 +0800
commit0e02329bedf6648259fd219642bb907bdb07fd21 (patch)
tree16551d2174313dad46c3e276a6e27ffee5213bda /drawing_test.go
parent5ec61310dc55c9af93d66e6d225f721738416d1f (diff)
This closes #861, support concurrency get cell picture and remove unused internal function `getSheetNameByID`
Diffstat (limited to 'drawing_test.go')
-rw-r--r--drawing_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/drawing_test.go b/drawing_test.go
index 1ee8fae..3c0b619 100644
--- a/drawing_test.go
+++ b/drawing_test.go
@@ -12,12 +12,13 @@
package excelize
import (
+ "sync"
"testing"
)
func TestDrawingParser(t *testing.T) {
f := File{
- Drawings: make(map[string]*xlsxWsDr),
+ 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>`)},