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

Test.Ouroboros.Network.PeerSelection.Instances

Synopsis

Documentation

newtype PeerAddr Source #

Simple address representation for the tests

Constructors

PeerAddr Int 

Instances

Instances details
Arbitrary PeerAddr Source #

We mostly avoid using this instance since we need careful control over the peer addrs, e.g. to make graphs work, and sets overlap etc. But it's here for the few cases that need it, and it is used for (lack-of) shrinking.

Instance details

Defined in Test.Ouroboros.Network.PeerSelection.Instances

Show PeerAddr Source # 
Instance details

Defined in Test.Ouroboros.Network.PeerSelection.Instances

Eq PeerAddr Source # 
Instance details

Defined in Test.Ouroboros.Network.PeerSelection.Instances

Ord PeerAddr Source # 
Instance details

Defined in Test.Ouroboros.Network.PeerSelection.Instances

Hashable PeerAddr Source # 
Instance details

Defined in Test.Ouroboros.Network.PeerSelection.Instances

Methods

hashWithSalt :: Int -> PeerAddr -> Int #

hash :: PeerAddr -> Int #

Orphan instances

Arbitrary SlotNo Source # 
Instance details

Arbitrary ConsensusModePeerTargets Source # 
Instance details

Arbitrary PeerSelectionTargets Source # 
Instance details

Arbitrary LocalRootConfig Source # 
Instance details

Arbitrary ConsensusMode Source # 
Instance details

Arbitrary UseBootstrapPeers Source # 
Instance details

Arbitrary AfterSlot Source # 
Instance details

Arbitrary UseLedgerPeers Source # 
Instance details

Arbitrary PeerAdvertise Source # 
Instance details

Arbitrary PeerSharing Source # 
Instance details

Arbitrary PeerTrustable Source # 
Instance details

Arbitrary DomainAccessPoint Source # 
Instance details

Arbitrary RelayAccessPoint Source # 
Instance details