cardano-ledger-test-9.9.9.9: Testing harness, tests and benchmarks for Shelley style cardano ledgers
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Constrained.Size

Synopsis

Documentation

data Size Source #

Constructors

SzNever [String] 
SzAny 
SzLeast Int 
SzMost Int 
SzRng Int Int

Size is in the range from i to j inclusive: SzRng i j = [i .. j]. Invariant i <= j

Bundled Patterns

pattern SzExactIntSize 

Instances

Instances details
Monoid Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Size

Methods

memptySize Source #

mappendSizeSizeSize Source #

mconcat ∷ [Size] → Size Source #

Semigroup Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Size

Methods

(<>)SizeSizeSize Source #

sconcatNonEmpty SizeSize Source #

stimesIntegral b ⇒ b → SizeSize Source #

Show Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Size

Methods

showsPrecIntSizeShowS Source #

showSizeString Source #

showList ∷ [Size] → ShowS Source #

LiftT Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Size

Eq Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Size

Methods

(==)SizeSizeBool Source #

(/=)SizeSizeBool Source #

Ord Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.Size

Methods

compareSizeSizeOrdering Source #

(<)SizeSizeBool Source #

(<=)SizeSizeBool Source #

(>)SizeSizeBool Source #

(>=)SizeSizeBool Source #

maxSizeSizeSize Source #

minSizeSizeSize Source #

Specification Size Int Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.SpecClass

Associated Types

type Count Size Source #

type Generators Size Source #

type Reps Size Source #

type Lenses Size Source #

Methods

runSIntSizeBool Source #

genS ∷ [String] → Count SizeGenerators SizeReps SizeLenses SizeGen Size Source #

sizeForSSizeSize Source #

genFromS ∷ [String] → IntGenerators SizeSizeGen Int Source #

type Count Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.SpecClass

type Count Size = ()
type Generators Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.SpecClass

type Generators Size = ()
type Lenses Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.SpecClass

type Lenses Size = ()
type Reps Size Source # 
Instance details

Defined in Test.Cardano.Ledger.Constrained.SpecClass

type Reps Size = ()

runSizeIntSizeBool Source #

atLeastDeltaInt Source #

Used in tests so things don't get too large

atMostAnyInt Source #

Used in tests so things don't get too large If we can't find an era using things of size 10 using things of size 100, isn't going to help.

genFromSizeSizeGen Int Source #

Use to generate real sizes, where there are no negative numbers, and the smallest possible size is 0. Use this only where you know it is NOT SzNever

genFromIntRangeSizeGen Int Source #

Similar to genFromSize, but allows negative numbers (unlike size where the smallest Int is 0)