From 577a07f08c6121d627323db00fdf9e74989a5515 Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 3 Dec 2021 00:19:11 +0800 Subject: 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` --- col_test.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'col_test.go') 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(`B`)) - f.checked = nil _, err = f.GetCols("Sheet1") assert.EqualError(t, err, `cannot convert cell "A" to coordinates: invalid cell name "A"`) -- cgit v1.2.1