summaryrefslogtreecommitdiff
path: root/excelize_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 /excelize_test.go
parent5ec61310dc55c9af93d66e6d225f721738416d1f (diff)
This closes #861, support concurrency get cell picture and remove unused internal function `getSheetNameByID`
Diffstat (limited to 'excelize_test.go')
-rw-r--r--excelize_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/excelize_test.go b/excelize_test.go
index ba7b528..e3cfa53 100644
--- a/excelize_test.go
+++ b/excelize_test.go
@@ -975,7 +975,7 @@ func TestGetActiveSheetIndex(t *testing.T) {
func TestRelsWriter(t *testing.T) {
f := NewFile()
- f.Relationships["xl/worksheets/sheet/rels/sheet1.xml.rel"] = &xlsxRelationships{}
+ f.Relationships.Store("xl/worksheets/sheet/rels/sheet1.xml.rel", &xlsxRelationships{})
f.relsWriter()
}
@@ -1231,7 +1231,7 @@ func TestRelsReader(t *testing.T) {
// Test unsupported charset.
f := NewFile()
rels := "xl/_rels/workbook.xml.rels"
- f.Relationships[rels] = nil
+ f.Relationships.Store(rels, nil)
f.XLSX[rels] = MacintoshCyrillicCharset
f.relsReader(rels)
}
@@ -1239,7 +1239,7 @@ func TestRelsReader(t *testing.T) {
func TestDeleteSheetFromWorkbookRels(t *testing.T) {
f := NewFile()
rels := "xl/_rels/workbook.xml.rels"
- f.Relationships[rels] = nil
+ f.Relationships.Store(rels, nil)
assert.Equal(t, f.deleteSheetFromWorkbookRels("rID"), "")
}