testing library
Test support for code that stores through TomStorage: an in-memory compare-and-swap remote (TomMemoryRemote) and per-device views onto it (TomMemoryStorage) whose reads, writes, quota, key and replica lag can each be made to fail on their own.
A test double, kept beside the port it stands in for so any caller of the port can test against it. Nothing a product links imports this library.
Classes
- TomMemoryRemote
- The shared container store, head-guarded as TomStorage.commit requires.
- TomMemoryStorage
- One device's view of remote.
- TomStaleHead
- A head value a replica would answer with instead of the truth.