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

Test.Ouroboros.Network.ConnectionManager.Timeouts

Synopsis

Documentation

verifyAllTimeouts :: Show addr => Bool -> Trace (SimResult ()) [(Time, AbstractTransitionTrace addr)] -> Every Source #

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 TestProperty Source #

Test property together with classification.

Constructors

TestProperty 

Fields

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.

classifyNegotiatedDataFlow :: [AbstractTransition] -> NegotiatedDataFlow Source #

classifyActivityType :: [AbstractTransition] -> ActivityType Source #

classifyEffectiveDataFlow :: [AbstractTransition] -> EffectiveDataFlow Source #

classifyTermination :: [AbstractTransition] -> Maybe TerminationType Source #

classifyPrunings :: [Trace addr (ConnectionHandlerTrace prctl dataflow)] -> Sum Int Source #

classifyPruning :: Trace addr (ConnectionHandlerTrace prctl dataflow) -> Sum Int Source #

ppTransition :: AbstractTransition -> String Source #