MCPcopy Create free account
hub / github.com/docling-project/docling-parse / test_threaded_single_thread

Function test_threaded_single_thread

tests/test_threaded_parse.py:290–306  ·  view source on GitHub ↗

Test threaded parsing with a single thread (sequential baseline).

()

Source from the content-addressed store, hash-verified

288
289
290def test_threaded_single_thread():
291 """Test threaded parsing with a single thread (sequential baseline)."""
292 filename = SAMPLE_PDF
293
294 parser = DoclingThreadedPdfParser(
295 parser_config=ThreadedPdfParserConfig(
296 loglevel="fatal",
297 threads=1,
298 max_concurrent_results=32,
299 boundary_type=PdfPageBoundaryType.CROP_BOX,
300 ),
301 decode_config=_make_decode_config(),
302 )
303
304 key = parser.load(filename)
305 count = sum(1 for result in parser.iterate_results() if result.success)
306 assert count == parser.page_count(key)
307
308
309def test_threaded_selected_pages_schedule_subset():

Callers

nothing calls this directly

Calls 6

loadMethod · 0.95
iterate_resultsMethod · 0.95
page_countMethod · 0.95
_make_decode_configFunction · 0.70

Tested by

no test coverage detected