ouroboros-network:testlib
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 #

newtype TestSeed Source #

Seed for domain lookups

Constructors

TestSeed 

Fields

Orphan instances