MediumFault

sealed interface MediumFault

What DurableStoreConformanceSuite.faultMedium hands back: a broken medium and how to heal it, or an honest declaration that this backend has none.

Sealed for the same reason RestartFixture is: a nullable hook would be an opt-out, and each arm here is checked. See DurableStoreConformanceSuite.faultMedium for what each arm can and cannot detect.

Inheritors

Types

Link copied to clipboard
class Broken(undo: suspend () -> DurableStore) : MediumFault

The medium under the store is broken until heal is called: every read, write and delete through the store must fail.

Link copied to clipboard

This backend has no medium for a read, write or delete to fail against — InMemoryDurableStore. Checked: the suite requires DurableStoreConformanceSuite.restart to answer RestartFixture.KeepsNothing for it, so a durable backend cannot take this arm.