From 36b7990d6ba1036823abf7a01ec8cf74509d4910 Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 15 Feb 2021 00:09:35 +0800 Subject: lint issue fixed and new formula function: ATAN, AVERAGE, AVERAGEA, CONCAT, CONCATENATE, COUNT, COUNTBLANK, MAX --- cell_test.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'cell_test.go') diff --git a/cell_test.go b/cell_test.go index 93e9f4c..c3c20f7 100644 --- a/cell_test.go +++ b/cell_test.go @@ -16,12 +16,13 @@ func TestConcurrency(t *testing.T) { wg := new(sync.WaitGroup) for i := 1; i <= 5; i++ { wg.Add(1) - go func(val int) { - f.SetCellValue("Sheet1", fmt.Sprintf("A%d", val), val) - f.SetCellValue("Sheet1", fmt.Sprintf("B%d", val), strconv.Itoa(val)) - f.GetCellValue("Sheet1", fmt.Sprintf("A%d", val)) + go func(val int, t *testing.T) { + assert.NoError(t, f.SetCellValue("Sheet1", fmt.Sprintf("A%d", val), val)) + assert.NoError(t, f.SetCellValue("Sheet1", fmt.Sprintf("B%d", val), strconv.Itoa(val))) + _, err := f.GetCellValue("Sheet1", fmt.Sprintf("A%d", val)) + assert.NoError(t, err) wg.Done() - }(i) + }(i, t) } wg.Wait() val, err := f.GetCellValue("Sheet1", "A1") -- cgit v1.2.1