Expand description
Shared test setup utilities for text-document crate tests.
Provides helpers to create an in-memory document with content,
export text, and traverse the entity tree — eliminating the need
for each feature crate to depend on direct_access and document_io
in its dev-dependencies.
Modules§
- block_
controller - document_
controller - document_
io_ controller - frame_
controller - inline_
element_ controller - root_
controller
Structs§
- Basic
Stats - Basic document statistics retrieved directly from entity data.
- Create
Document Dto - Create
Root Dto - Import
Plain Text Dto
Enums§
Functions§
- export_
text - Export the current document as plain text.
- get_
block_ ids - Get the first frame’s block IDs (sorted by document_position).
- get_
document_ stats - Get basic document statistics by reading the Document entity directly — avoids depending on the document_inspection crate.
- get_
element_ ids - Get the element IDs for a given block.
- get_
first_ block_ element_ ids - Get the first block’s element IDs.
- get_
frame_ id - Get the first frame ID for the document.
- setup
- Create an in-memory database with a Root and empty Document.
- setup_
with_ text - Create an in-memory database with a Root, Document, and imported text content.