Skip to main content

Module testing

Module testing 

Source
Expand description

Public testing namespace. Use it for the documented testing API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file. Downstream-facing test kit for SDK consumers.

Fakes and scripted adapters in this namespace exercise the same public ports, records, and package contracts as production implementations.

Modules§

approval
Public approval namespace. Use it for the documented approval API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file.
content
Public content namespace. Use it for the documented content API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file.
event
Public event namespace. Use it for the documented event API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file.
extension
Public extension namespace. Use it for the documented extension API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file.
fakes
Compatibility facade for deterministic fake adapters. Prefer the concrete modules below when a test needs a narrower fake surface.
hooks
Public hooks namespace. Use it for the documented hooks API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file.
isolation
Public isolation namespace. Use it for the documented isolation API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file.
output_delivery
Public output delivery namespace. Use it for the documented output delivery API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file.
realtime
Public realtime namespace. Use it for the documented realtime API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file.
telemetry
Public telemetry namespace. Use it for the documented telemetry API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file.
tool
Public tool namespace. Use it for the documented tool API surface; prefer crate-root re-exports for common imports. Module items must preserve the core ownership and side-effect boundaries described in this file.

Structs§

DeterministicClock
In-memory deterministic clock fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
DeterministicIdGenerator
In-memory deterministic id generator fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
FakeContentResolver
In-memory fake content resolver fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
FakeContentStore
In-memory fake content store fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
FakeEventConformanceHarness
In-memory fake event conformance harness fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
FakeEventSink
In-memory fake event sink fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
FakeFixtureHarness
In-memory fake fixture harness fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
FakeIsolationRuntime
In-memory fake isolation runtime fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
FakeJournalStore
In-memory fake journal store fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
FakeProvider
In-memory fake provider fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
FixtureManifest
In-memory fixture manifest fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
FixtureManifestEntry
In-memory fixture manifest entry fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
ScriptedApprovalDispatcher
In-memory scripted approval dispatcher fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
ScriptedExtensionActionExecutor
In-memory scripted extension action executor fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
ScriptedHookExecutor
In-memory scripted hook executor fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
ScriptedOutputSink
In-memory scripted output sink fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
ScriptedRealtimeAdapter
In-memory scripted realtime adapter fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
ScriptedTelemetrySink
In-memory scripted telemetry sink fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
ScriptedToolExecutor
In-memory scripted tool executor fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
StoredContent
In-memory stored content fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
StoredContentManifestEntry
In-memory stored content manifest entry fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.

Constants§

FIXTURE_SCHEMA_VERSION
Constant value for the testing::fakes contract. Use it to keep SDK records and tests aligned on the same stable value.

Functions§

normalize_json_value
Returns normalize json value for the current value. This is a read-only or data-construction helper unless the method body explicitly calls a port or store.
read_fixture
Read fixture. This reads and parses normalized JSON from the caller-provided fixture path on disk.
write_fixture
Write fixture. This writes normalized JSON to the caller-provided fixture path on disk.