diff options
author | xuri <xuri.me@gmail.com> | 2019-04-15 11:22:57 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-04-15 11:22:57 +0800 |
commit | f2df344739146189a1dea7cfb81239231af5135b (patch) | |
tree | d0a119d2c2d3e25a6b3d298088f233db1bb39648 /picture_test.go | |
parent | c423617e9d948b61cf9397710bf8f2098efe7634 (diff) |
Resolve #369,#370
add error return value
exported functions:
GetMergeCells
ProtectSheet
UnprotectSheet
UpdateLinkedValue
GetMergeCells
SetSheetVisible
inner functions:
workSheetReader
copySheet
Diffstat (limited to 'picture_test.go')
-rw-r--r-- | picture_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/picture_test.go b/picture_test.go index 2b39ed8..5b1a9e3 100644 --- a/picture_test.go +++ b/picture_test.go @@ -102,7 +102,7 @@ func TestGetPicture(t *testing.T) { // Try to get picture from a worksheet that doesn't contain any images. file, raw, err = xlsx.GetPicture("Sheet3", "I9") - assert.NoError(t, err) + assert.EqualError(t, err, "Sheet Sheet3 is not exist") assert.Empty(t, file) assert.Empty(t, raw) |