Module double

Module double 

Source
Expand description

Test doubles

Enable unit testing of blockchain interactions with controlled inputs and predictable behavior.

Structsยง

DumbBlockScanner
Dumb block scanner
DumbBlockStreamer
Dumb block streamer
FakeChainObserver
A Fake ChainObserver for testing purpose using fixed data.
FakeChainReader
FakeChainReader is a fake implementation of ChainBlockReader for testing purposes.
InMemoryBlockRangeRoot
In memory Block range root representation, for testing purposes.
InMemoryChainDataStore
In memory implementation of ChainDataStore, for testing purposes.
InMemoryChainDataStoreBuilder
Builder for InMemoryChainDataStore.