Expand description
Shared behavioral checks for MemoryProvider implementations.
Backend crates should call these helpers from integration tests so every
persistence layer honors the same contract. See
cel-memory-sqlite/tests/swap.rs
for a downstream example.
Functions§
- assert_
retrieve_ finds_ written - Hybrid retrieval must surface a chunk the provider just wrote.
- assert_
session_ lifecycle - Session open → scoped write → close must round-trip through
get_session. - assert_
summarize_ session_ roundtrip - Summarization must produce a persisted
JobSummarylinked to the session. - assert_
write_ get_ stats - Minimal contract every backend must satisfy: write a chunk, read it back, and report coherent stats.