Add test for document splitter

This commit is contained in:
Veronica Berglyd Olsen
2022-10-13 19:01:06 +02:00
parent 3f4d85dcad
commit 84af87b155
2 changed files with 140 additions and 3 deletions
+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]