Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- tests :: TestTree
- codec :: forall (m :: Type -> Type). MonadST m => Codec (LocalStateQuery Block (Point Block) Query) DeserialiseFailure (State :: LocalStateQuery Block (Point Block) Query -> Type) m ByteString
- newtype AnyMessageWithResult block point (query :: Type -> Type) result = AnyMessageWithResult {
- getAnyMessageWithResult :: AnyMessage (LocalStateQuery block point query) (State :: LocalStateQuery block point query -> Type)
- data Query result where
- newtype MockLedgerState = MockLedgerState (Target (Point Block))
Documentation
codec :: forall (m :: Type -> Type). MonadST m => Codec (LocalStateQuery Block (Point Block) Query) DeserialiseFailure (State :: LocalStateQuery Block (Point Block) Query -> Type) m ByteString Source #
newtype AnyMessageWithResult block point (query :: Type -> Type) result Source #
A newtype wrapper which captures type of response generated for all queries.
Note that this is not as general as the protocol allows, since the protocol admits different result for different queries.
AnyMessageWithResult | |
|
Instances
(Arbitrary point, Arbitrary (query result), Arbitrary result) => Arbitrary (AnyMessageWithResult block point query result) Source # | |
Defined in Ouroboros.Network.Protocol.LocalStateQuery.Test arbitrary :: Gen (AnyMessageWithResult block point query result) # shrink :: AnyMessageWithResult block point query result -> [AnyMessageWithResult block point query result] # | |
(ShowQuery query, Show point) => Show (AnyMessageWithResult block point query result) Source # | |
Defined in Ouroboros.Network.Protocol.LocalStateQuery.Test showsPrec :: Int -> AnyMessageWithResult block point query result -> ShowS # show :: AnyMessageWithResult block point query result -> String # showList :: [AnyMessageWithResult block point query result] -> ShowS # |
data Query result where Source #
GetTheLedgerState :: Query MockLedgerState | An arbitrary query that happens to be trivial to implement in this test |
Instances
newtype MockLedgerState Source #