add unit test and improve robustness

This commit is contained in:
MaysWind
2024-10-29 23:41:55 +08:00
parent d3c25a1aff
commit fbca205cca
8 changed files with 250 additions and 0 deletions
@@ -159,6 +159,10 @@ func CreateNewExcelFileImportedDataTable(data []byte) (*ExcelFileImportedDataTab
row := sheet.Row(0)
if row == nil {
continue
}
if i == 0 {
for j := 0; j <= row.LastCol(); j++ {
headerItem := row.Col(j)