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_write_get_stats
Minimal contract every backend must satisfy: write a chunk, read it back, and report coherent stats.