diff options
author | xuri <xuri.me@gmail.com> | 2021-07-04 12:13:06 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-07-04 12:13:06 +0800 |
commit | 0e02329bedf6648259fd219642bb907bdb07fd21 (patch) | |
tree | 16551d2174313dad46c3e276a6e27ffee5213bda /excelize_test.go | |
parent | 5ec61310dc55c9af93d66e6d225f721738416d1f (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.go | 6 |
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"), "") } |