Files
Crosspoint/test
Justin Mitchell d364e54a69 Add KOReader XPath sync support for EPUB navigation
Implements bidirectional conversion between KOReader XPath positions and FreeInkBook character offsets. Uses streaming SAX parsing to match chapter text accounting with ChapterLayout, enabling position sync without requiring DOM or pagination. Handles element ancestry tracking, text offset calculation, and spine index extraction.
2026-07-08 01:11:29 -04:00
..

Host-side gtest unit tests for crosspoint-reader.

Build and run:

  cmake -S test -B build/test
  cmake --build build/test
  ctest --test-dir build/test --output-on-failure -j

Run a single suite directly:

  cmake --build build/test --target StreamingJsonParserTest
  build/test/streaming_json_parser/StreamingJsonParserTest --gtest_filter='*'

Google Test is fetched via CMake FetchContent on first configure; the pinned
version lives in test/CMakeLists.txt.