summaryrefslogtreecommitdiff
path: root/rows_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'rows_test.go')
-rw-r--r--rows_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/rows_test.go b/rows_test.go
index 47c9d96..6b50c75 100644
--- a/rows_test.go
+++ b/rows_test.go
@@ -706,6 +706,15 @@ func TestDuplicateRowInvalidRownum(t *testing.T) {
}
}
+func TestGetValueFrom(t *testing.T) {
+ c := &xlsxC{T: "inlineStr"}
+ f := NewFile()
+ d := &xlsxSST{}
+ val, err := c.getValueFrom(f, d)
+ assert.NoError(t, err)
+ assert.Equal(t, "", val)
+}
+
func TestErrSheetNotExistError(t *testing.T) {
err := ErrSheetNotExist{SheetName: "Sheet1"}
assert.EqualValues(t, err.Error(), "sheet Sheet1 is not exist")