Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data MinimalChainDbArgs m blk = MinimalChainDbArgs {}
- data NodeDBs db = NodeDBs {
- nodeDBsImm ∷ db
- nodeDBsVol ∷ db
- nodeDBsLgr ∷ db
- nodeDBsGsm ∷ db
- emptyNodeDBs ∷ MonadSTM m ⇒ m (NodeDBs (StrictTMVar m MockFS))
- fromMinimalChainDbArgs ∷ (MonadThrow m, MonadSTM m, ConsensusProtocol (BlockProtocol blk), PrimMonad m) ⇒ MinimalChainDbArgs m blk → Complete ChainDbArgs m blk
- mkTestChunkInfo ∷ TopLevelConfig TestBlock → ChunkInfo
Documentation
data MinimalChainDbArgs m blk Source #
Minimal set of arguments for creating a ChainDB instance for testing purposes.
MinimalChainDbArgs | |
|
A vector with an element for each database of a node
The db
type parameter is instantiated by this module at types for mock
filesystems; either the MockFS
type or reference cells thereof.
NodeDBs | |
|
Instances
Foldable NodeDBs Source # | |
Defined in Test.Util.ChainDB fold ∷ Monoid m ⇒ NodeDBs m → m # foldMap ∷ Monoid m ⇒ (a → m) → NodeDBs a → m # foldMap' ∷ Monoid m ⇒ (a → m) → NodeDBs a → m # foldr ∷ (a → b → b) → b → NodeDBs a → b # foldr' ∷ (a → b → b) → b → NodeDBs a → b # foldl ∷ (b → a → b) → b → NodeDBs a → b # foldl' ∷ (b → a → b) → b → NodeDBs a → b # foldr1 ∷ (a → a → a) → NodeDBs a → a # foldl1 ∷ (a → a → a) → NodeDBs a → a # elem ∷ Eq a ⇒ a → NodeDBs a → Bool # maximum ∷ Ord a ⇒ NodeDBs a → a # | |
Traversable NodeDBs Source # | |
Functor NodeDBs Source # | |
emptyNodeDBs ∷ MonadSTM m ⇒ m (NodeDBs (StrictTMVar m MockFS)) Source #
fromMinimalChainDbArgs ∷ (MonadThrow m, MonadSTM m, ConsensusProtocol (BlockProtocol blk), PrimMonad m) ⇒ MinimalChainDbArgs m blk → Complete ChainDbArgs m blk Source #
Creates a default set of of arguments for ChainDB tests.
mkTestChunkInfo ∷ TopLevelConfig TestBlock → ChunkInfo Source #
Utility function to get a default chunk info in case we have EraParams available.