diff options
author | Ri Xu <xuri.me@gmail.com> | 2016-12-31 23:47:30 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2016-12-31 23:47:30 +0800 |
commit | 9e8d36ce59381eadb934585a179c4c6d7f871b35 (patch) | |
tree | 94d35ae9a09527b0cbc4be8a90850423bf61d4a6 /excelize_test.go | |
parent | f958f05a3bf6f9fdc7f76539d9a3b24f49cc2694 (diff) |
- Performance improvement, remove `replaceRelationshipsID` and `workBookCompatibility` functions;
- New functions `GetActiveSheetIndex`, `GetSheetName` and `GetSheetMap` added.
Diffstat (limited to 'excelize_test.go')
-rw-r--r-- | excelize_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/excelize_test.go b/excelize_test.go index 35a395c..7848ed9 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -54,6 +54,12 @@ func TestExcelize(t *testing.T) { f1.SetCellValue("Sheet2", "M2", nil) // Test read cell value with given axis large than exists row. f1.GetCellValue("Sheet2", "E231") + // Test get active sheet of XLSX and get sheet name of XLSX by given sheet index. + f1.GetSheetName(f1.GetActiveSheetIndex()) + // Test get sheet name of XLSX by given invalid sheet index. + f1.GetSheetName(4) + // Test get sheet map of XLSX. + f1.GetSheetMap() for i := 1; i <= 300; i++ { f1.SetCellStr("SHEET3", "c"+strconv.Itoa(i), strconv.Itoa(i)) |