pub async fn assert_session_store_conformance(
store: &dyn SessionStore,
record: SessionRecord,
)Expand description
Assert that a SessionStore implementation honors the trait contract.
Drives store through &dyn SessionStore and checks:
savethenloadround-trips the record unchangeddeleteremoves it, after whichloadreturnsStorageError::NotFound- a second
deleteof the now-absent id still succeeds (idempotent)
record must use a session id the store does not already hold. Panics with a
descriptive message on the first violated invariant.