Skip to main content

Module conformance

Module conformance 

Source
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 JobSummary linked to the session.
assert_write_get_stats
Minimal contract every backend must satisfy: write a chunk, read it back, and report coherent stats.