calcchain_test.go 443 B

12345678910111213141516171819
  1. package excelize
  2. import "testing"
  3. func TestCalcChainReader(t *testing.T) {
  4. f := NewFile()
  5. f.CalcChain = nil
  6. f.XLSX["xl/calcChain.xml"] = MacintoshCyrillicCharset
  7. f.calcChainReader()
  8. }
  9. func TestDeleteCalcChain(t *testing.T) {
  10. f := NewFile()
  11. f.CalcChain = &xlsxCalcChain{C: []xlsxCalcChainC{}}
  12. f.ContentTypes.Overrides = append(f.ContentTypes.Overrides, xlsxOverride{
  13. PartName: "/xl/calcChain.xml",
  14. })
  15. f.deleteCalcChain(1, "A1")
  16. }