| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Consensus.Leios.LeiosNotify.Protocol
Description
Tests of LeiosNotify's client and server, run against each other over connected channels with a real codec.
Synopsis
- newtype ExcessiveOutcome = ExcessiveOutcome WhetherDisconnected
- type P = LeiosNotify Int Int Int
- data WhetherDisconnected
- codec ∷ Codec P DeserialiseFailure (IOSim s) ByteString
- runPipelinedClient ∷ (ShowProxy point, ShowProxy announcement, ShowProxy vote) ⇒ Codec (LeiosNotify point announcement vote) DeserialiseFailure (IOSim s) ByteString → StrictTVar (IOSim s) Int → Int → StrictTMVar (IOSim s) () → Channel (IOSim s) ByteString → IOSim s ()
- sizeLimits ∷ ProtocolSizeLimits (LeiosNotify point announcement vote) ByteString
- tests ∷ TestTree
Documentation
newtype ExcessiveOutcome Source #
Constructors
| ExcessiveOutcome WhetherDisconnected |
Instances
| Eq ExcessiveOutcome Source # | |
Defined in Test.Consensus.Leios.LeiosNotify.Protocol Methods | |
| Show ExcessiveOutcome Source # | |
Defined in Test.Consensus.Leios.LeiosNotify.Protocol Methods showsPrec ∷ Int → ExcessiveOutcome → ShowS # show ∷ ExcessiveOutcome → String # showList ∷ [ExcessiveOutcome] → ShowS # | |
data WhetherDisconnected Source #
Constructors
| Disconnected | |
| NotDisconnected |
Instances
| Eq WhetherDisconnected Source # | |
Defined in Test.Consensus.Leios.LeiosNotify.Protocol Methods | |
| Show WhetherDisconnected Source # | |
Defined in Test.Consensus.Leios.LeiosNotify.Protocol Methods showsPrec ∷ Int → WhetherDisconnected → ShowS # show ∷ WhetherDisconnected → String # showList ∷ [WhetherDisconnected] → ShowS # | |
codec ∷ Codec P DeserialiseFailure (IOSim s) ByteString Source #
runPipelinedClient ∷ (ShowProxy point, ShowProxy announcement, ShowProxy vote) ⇒ Codec (LeiosNotify point announcement vote) DeserialiseFailure (IOSim s) ByteString → StrictTVar (IOSim s) Int → Int → StrictTMVar (IOSim s) () → Channel (IOSim s) ByteString → IOSim s () Source #
Run the pipelined client at the given depth until stop is filled,
counting the replies it handles.
sizeLimits ∷ ProtocolSizeLimits (LeiosNotify point announcement vote) ByteString Source #