ouroboros-network:protocols-tests-lib
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.PeerSharing.Test

Synopsis

Documentation

prop_direct :: Fun Word8 Int -> [PeerSharingAmount] -> Property Source #

prop_connect :: Fun Word8 Int -> [PeerSharingAmount] -> Property Source #

prop_channel :: (MonadAsync m, MonadCatch m, MonadST m) => Fun Word8 Int -> [PeerSharingAmount] -> m Property Source #

prop_channel_ST :: Fun Word8 Int -> [PeerSharingAmount] -> Property Source #

prop_channel_IO :: Fun Word8 Int -> [PeerSharingAmount] -> Property Source #

prop_codec_splits2 :: AnyMessage (PeerSharing Int) -> Property Source #

Check for data chunk boundary problems in the codec using 2 chunks.

prop_codec_splits3 :: AnyMessage (PeerSharing Int) -> Property Source #

Check for data chunk boundary problems in the codec using 3 chunks.

Orphan instances

Arbitrary PeerSharingAmount Source # 
Instance details

Methods

arbitrary :: Gen PeerSharingAmount #

shrink :: PeerSharingAmount -> [PeerSharingAmount] #

Arbitrary peer => Arbitrary (AnyMessage (PeerSharing peer)) Source # 
Instance details

Methods

arbitrary :: Gen (AnyMessage (PeerSharing peer)) #

shrink :: AnyMessage (PeerSharing peer) -> [AnyMessage (PeerSharing peer)] #

Eq peer => Eq (AnyMessage (PeerSharing peer)) Source # 
Instance details

Methods

(==) :: AnyMessage (PeerSharing peer) -> AnyMessage (PeerSharing peer) -> Bool #

(/=) :: AnyMessage (PeerSharing peer) -> AnyMessage (PeerSharing peer) -> Bool #