Package-level declarations

Types

Link copied to clipboard

A drop-in replacement for us.tractat.kuilt.core.InMemoryLoom with controllable per-peer delivery for deterministic concurrency testing.

Link copied to clipboard

A Seam produced by ControllableLoom. Delivery is controlled by the parent loom; callers interact with it identically to any other Seam.

Link copied to clipboard
class FakeLoom : Loom

A test double for Loom that returns FakeSeam instances.

Link copied to clipboard
class FakeSeam(val selfId: PeerId = PeerId("self"), initialPeers: Set<PeerId> = setOf(selfId), initialState: SeamState = SeamState.Woven) : Seam

A test double for Seam with test-driver helpers for state mutation, frame delivery, and outgoing-frame inspection.

Functions

Link copied to clipboard
fun assertAll(vararg assertions: () -> Unit)

Runs every assertion, collecting all failures instead of stopping at the first. If any assertion throws AssertionError, rethrows a single AssertionError aggregating every failure message. Non-assertion throwables propagate immediately.

Link copied to clipboard
fun fakeSeamPair(hostId: PeerId, joinerId: PeerId): Pair<FakeSeam, FakeSeam>

Build a wired pair of FakeSeams whose FakeSeam.broadcast calls cross-deliver into the other seam's Seam.incoming, matching the send semantics of a real two-peer fabric.