diff options
author | xuri <xuri.me@gmail.com> | 2021-08-09 22:22:43 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-08-09 22:22:43 +0800 |
commit | c49e7aab306437f0e721620af4a24364edf4d601 (patch) | |
tree | 88ffb72996214d993626083487860f699de8bdf5 /lib_test.go | |
parent | cf9fbafdd805874267a0f5d27fd1c720b148ec91 (diff) |
Reduce cyclomatic complexities for the formula calculate function and update documentation for the API: `MergeCell` and `GetCellValue`
Diffstat (limited to 'lib_test.go')
-rw-r--r-- | lib_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib_test.go b/lib_test.go index 2e0e506..025bc85 100644 --- a/lib_test.go +++ b/lib_test.go @@ -237,6 +237,10 @@ func TestBytesReplace(t *testing.T) { assert.EqualValues(t, s, bytesReplace(s, []byte{}, []byte{}, 0)) } +func TestGetRootElement(t *testing.T) { + assert.Equal(t, 0, len(getRootElement(xml.NewDecoder(strings.NewReader(""))))) +} + func TestSetIgnorableNameSpace(t *testing.T) { f := NewFile() f.xmlAttr["xml_path"] = []xml.Attr{{}} |