Skip to main content

Crate rakka_persistence_tck

Crate rakka_persistence_tck 

Source
Expand description

rakka-persistence-tck. akka.net: Akka.Persistence.TCK.

Provides reusable spec functions plugin authors can call against their Journal and SnapshotStore implementations.

The suite is split into journal_suite and snapshot_suite modules (plus the lightweight round-trip helpers retained for historical usage).

Functions§

journal_concurrent_suite
Concurrent-writer interleaving. Writes batches for two distinct persistence ids concurrently; both replays must observe a contiguous sequence with no cross-id leakage.
journal_extended_suite
Extended suite covering edge cases drawn from upstream’s Akka.Persistence.TCK.Journal.JournalSpec: replay-from-mid, replay-after-delete, idempotent replay, max=0 short-circuit, and concurrent-writer interleaving.
journal_round_trip
Simple write/replay round trip. Returns true on success.
journal_suite
Full journal conformance suite. Panics with a descriptive message on the first failing assertion so callers can wire it straight into #[tokio::test] without additional boilerplate.
journal_tag_suite
Conformance for optional tag-based querying. Callers gate this on a supports_tags capability flag since not every backend implements it.
snapshot_round_trip
Smoke test: save and load a single snapshot.
snapshot_suite
Full snapshot conformance suite.