FaultyLoom
class FaultyLoom(delegate: Loom, scope: CoroutineScope, defaultProfile: FaultProfile = FaultProfile.Healthy) : Loom
A Loom wrapper that constructs FaultySeam instances.
A defaultProfile applies to every link the factory creates. Individual links can override their profile via FaultySeam.setFaultProfile.
Useful for fault scenarios where all links should start partitioned or delayed, then selectively healed per-peer.
scope must be a CoroutineScope that outlives the test — the standard pattern is to pass the kotlinx.coroutines.test.TestScope from runTest.
Constructors
Link copied to clipboard
constructor(delegate: Loom, scope: CoroutineScope, defaultProfile: FaultProfile = FaultProfile.Healthy)
Properties
Link copied to clipboard
All FaultySeam instances created so far, in creation order.
Functions
Link copied to clipboard
Link copied to clipboard
The delegate's verdict, verbatim — including when a defaultProfile partitions every link.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Apply profile to every link the factory has created so far.
Link copied to clipboard