diff options
author | xuri <xuri.me@gmail.com> | 2021-02-15 00:09:35 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-02-15 00:09:35 +0800 |
commit | 36b7990d6ba1036823abf7a01ec8cf74509d4910 (patch) | |
tree | 118e8a9e0db3d071defb497cd98b2fa85595f7b9 /cell_test.go | |
parent | ca6b1577a7d1508e61e7084ee67ab0dd759b305e (diff) |
lint issue fixed and new formula function: ATAN, AVERAGE, AVERAGEA, CONCAT, CONCATENATE, COUNT, COUNTBLANK, MAX
Diffstat (limited to 'cell_test.go')
-rw-r--r-- | cell_test.go | 11 |
1 files changed, 6 insertions, 5 deletions
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") |