ouroboros-network-protocols:testlib
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.LocalStateQuery.Test

Synopsis

Documentation

newtype AnyMessageAndAgencyWithResult 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.

Instances

Instances details
(Arbitrary point, Arbitrary (query result), Arbitrary result) => Arbitrary (AnyMessageAndAgencyWithResult block point query result) Source # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Test

Methods

arbitrary :: Gen (AnyMessageAndAgencyWithResult block point query result) #

shrink :: AnyMessageAndAgencyWithResult block point query result -> [AnyMessageAndAgencyWithResult block point query result] #

(ShowQuery query, Show point) => Show (AnyMessageAndAgencyWithResult block point query result) Source # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Test

Methods

showsPrec :: Int -> AnyMessageAndAgencyWithResult block point query result -> ShowS #

show :: AnyMessageAndAgencyWithResult block point query result -> String #

showList :: [AnyMessageAndAgencyWithResult block point query result] -> ShowS #

Orphan instances

Arbitrary AcquireFailure Source # 
Instance details

Arbitrary point => Arbitrary (Target point) Source # 
Instance details

Methods

arbitrary :: Gen (Target point) #

shrink :: Target point -> [Target point] #

Serialise point => Serialise (Target point) Source # 
Instance details

Methods

encode :: Target point -> Encoding #

decode :: Decoder s (Target point) #

encodeList :: [Target point] -> Encoding #

decodeList :: Decoder s [Target point] #