diff options
author | xuri <xuri.me@gmail.com> | 2021-12-03 00:19:11 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-12-03 00:19:11 +0800 |
commit | 577a07f08c6121d627323db00fdf9e74989a5515 (patch) | |
tree | e8252f418b2ac632d148d272aaeac2a81000d08c /col_test.go | |
parent | aa359f1c748b5cbdc57ae032255e8b8940001e0b (diff) |
Simplify code and update unit test
Improve unit test coverage for the functions: `NewStyle`, `SetActiveSheet`, `SearchSheet` and `deleteAndAdjustDefinedNames`
Simplify code and add comments for the function: `deleteAndAdjustDefinedNames`
Diffstat (limited to 'col_test.go')
-rw-r--r-- | col_test.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/col_test.go b/col_test.go index 80fc676..da46f78 100644 --- a/col_test.go +++ b/col_test.go @@ -118,10 +118,7 @@ func TestGetColsError(t *testing.T) { _, err = f.GetCols("Sheet1") assert.EqualError(t, err, `strconv.Atoi: parsing "A": invalid syntax`) - f = NewFile() - f.Sheet.Delete("xl/worksheets/sheet1.xml") f.Pkg.Store("xl/worksheets/sheet1.xml", []byte(`<worksheet><sheetData><row r="2"><c r="A" t="str"><v>B</v></c></row></sheetData></worksheet>`)) - f.checked = nil _, err = f.GetCols("Sheet1") assert.EqualError(t, err, `cannot convert cell "A" to coordinates: invalid cell name "A"`) |