yams/tests/unit/extraction
trvon 8a1f753ba3
fix(extraction): build TextBasicHandler capabilities from one extension set
supportedExtensions() returned its static set by value, so capabilities()
constructed the extension vector from begin() of one temporary and end()
of another. That range is undefined behavior. libstdc++ and libc++ release
iterators happened to walk the first copy to completion, but the MSVC debug
STL rejects it in _Verify_range with a modal "Microsoft Visual C++ Runtime
Library" assertion dialog. HandlerRegistry::selectBest calls capabilities()
for every candidate, so every lines: search and every applyExtractScope call
hung forever on Windows Debug builds.

Return the shared set by const reference and take begin()/end() from that
one instance. New text_basic_handler unit tests pin the shared instance,
the capability list, registry selection and line-range extraction; the old
code also fails them under -D_GLIBCXX_DEBUG with "function requires a valid
iterator range".

Signed-off-by: trvon <me@trevon.dev>
2026-10-01 10:35:32 -06:00
..
builtin_content_extractor_catch2_test.cpp chore: housekeeping — rm dead code, consolidate MCP tools, add tests, clean docs (#50) 2026-06-16 19:37:24 -04:00
external_plugin_extractor_test.cpp fix: license header file updates, mcp improvements, windows build fixes 2026-01-30 17:23:33 -05:00
html_extractor_robust_test.cpp fix(extraction): keep HTML script/style and tag scans linear 2026-09-23 17:59:50 -06:00
jsonrpc_client_test.cpp improvements for v0.7.10 2025-12-11 22:07:22 -05:00
plain_text_extractor_catch2_test.cpp fix: improve stats from embeddings used to trigger search rebuild: 2026-04-14 20:26:26 -04:00
plugin_process_launcher_test.cpp test(extraction): poll for launcher response lines 2026-08-20 23:25:33 -06:00
plugin_process_minimal_test.cpp additional improvements (check the changelog), and clang tidy fixes. working to stabilize build before v0.7.7 so the tag is deleted 2025-11-04 14:43:42 -05:00
plugin_process_test.cpp fix(build): restore clean test and benchmark links 2026-08-06 09:59:07 -04:00
text_basic_handler_catch2_test.cpp fix(extraction): build TextBasicHandler capabilities from one extension set 2026-10-01 10:35:32 -06:00
text_extraction_fts5_pipeline_test.cpp fix: license header file updates, mcp improvements, windows build fixes 2026-01-30 17:23:33 -05:00