Skip to main content

Module test_utils

Module test_utils 

Source
Expand description

Shared test fixture builders for integration tests and cross-crate use Shared test fixture builders for integration tests and cross-crate use.

This module is public so that dependent crates (e.g. allsource-performance) can import ready-made fixtures instead of duplicating test data.

Functionsยง

test_entity_id
test_event
Create a minimal test event with sensible defaults.
test_event_for_tenant
Create a test event scoped to a specific tenant.
test_event_type
Pre-built value objects for quick use in tests.
test_event_with_payload
Create a test event with a custom JSON payload.
test_store
Create an in-memory EventStore (no persistence).
test_store_with_persistence
Create an EventStore backed by a temporary directory for persistence tests.
test_tenant
Create a test tenant with standard quotas.
test_tenant_id