FakeLoom
A test double for Loom that returns FakeSeam instances.
weave with Rendezvous.New seeds the seam's FakeSeam.selfId from the pattern's session name. For wired two-peer scenarios, prefer fakeSeamPair.
val loom = FakeLoom()
val seam = loom.host(Pattern("alice"))
// seam.selfId == PeerId("alice")Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
FabricAvailability.Available is a fact here, not the guess Loom.capability()'s floor exists to refuse (#1746): weave constructs a FakeSeam in process and can never fail for a fabric reason — there is no socket, no permission and no radio to establish anything about.
Link copied to clipboard