Expand description
Reusable trait-conformance harness for driver crates.
Downstream backend crates (Epic B: Postgres, Redis, memory; Epic E: the
Enterprise gateway driver) import this module to prove their implementation
honors the trait contract, exercising it through a &dyn reference so
object-safety is checked at the same time.
The harness functions panic on the first violated invariant, so they are
meant to be called from within a #[test] (driven by the caller’s own async
runtime).
Functions§
- assert_
audit_ sink_ conformance - Assert that an
AuditSinkimplementation honors the trait contract. - assert_
credential_ store_ conformance - Assert that a
CredentialStoreimplementation honors the trait contract. - assert_
lifecycle_ store_ conformance - Assert that a
LifecycleStoreimplementation honors the trait contract. - assert_
policy_ store_ conformance - Assert that a
PolicyStoreimplementation honors the trait contract. - assert_
rate_ limit_ counter_ conformance - Assert that a
RateLimitCounterimplementation honors the trait contract. - assert_
session_ store_ conformance - Assert that a
SessionStoreimplementation honors the trait contract.