Add test for document splitter

This commit is contained in:
Veronica Berglyd Olsen committed 2022-10-13 19:01:06 +02:00
1 parent 3f4d85dcad
commit 84af87b155
2 files changed
+140 -3

No files matched your search

+3
View File
@@ -192,6 +192,9 @@ class DocSplitter:
"""An iterator that will write each document in the buffer, and
return its new handle, parent handle, and sibling handle.
"""
if self._srcHandle is None:
return
pHandle = self._parHandle
nHandle = self._parHandle if self._inFolder else self._srcHandle
hHandle = [self._parHandle, None, None, None, None]