ouroboros-network-framework:testlib
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.ConnectionManager.Test.Timeouts

Synopsis

Documentation

verifyTimeouts Source #

Arguments

:: Maybe (AbstractState, Time)

Map of first occurrence of a given tau state

-> Bool

If running in Diffusion or not

-> [(Time, AbstractTransitionTrace addr)]

Stream of abstract transitions for a given connection paired with the time it occurred

-> Property 

data Timeouts Source #

Configurable timeouts. We use different timeouts for IO and IOSim property tests.

ioTimeouts :: Timeouts Source #

Timeouts for IO tests.

simTimeouts :: Timeouts Source #

Timeouts for IOSim tests.

groupConns :: Ord addr => (a -> TransitionTrace' addr st) -> (Transition' st -> Bool) -> Trace r a -> Trace r [a] Source #

Groups TransitionTrace to the same peerAddr.

groupConnsEither :: Ord addr => (a -> TransitionTrace' addr st) -> (Transition' st -> Bool) -> Trace r (Either a b) -> Trace r (Either [a] b) Source #

Like groupConns but can be used to also interleave other types of events.

type SimAddr = TestAddress SimAddr_ Source #

The concrete address type used by simulations.

newtype TestAddr Source #

We use a wrapper for test addresses since the Arbitrary instance for Snocket.TestAddress only generates addresses between 1 and 4.

Constructors

TestAddr 

Fields

data ActivityType Source #

Constructors

IdleConn 
ActiveConn

Active connections are once that reach any of the state: