plutus-tx-1.0.0.0: Libraries for Plutus Tx and its prelude
Safe Haskell None
Language Haskell2010

PlutusTx.Coverage

Synopsis

Documentation

data CoverageAnnotation Source #

Instances

Instances details
Eq CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

Ord CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

Read CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

Show CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

Generic CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

ToJSON CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

ToJSONKey CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

FromJSON CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

FromJSONKey CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

NFData CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

Flat CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

Pretty CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

Serialise CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

type Rep CoverageAnnotation Source #
Instance details

Defined in PlutusTx.Coverage

data CoverageIndex Source #

This type keeps track of all coverage annotations and where they have been inserted / what annotations are expected to be found when executing a piece of code.

Instances

Instances details
Eq CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

Ord CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

Show CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

Generic CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

Semigroup CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

Monoid CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

ToJSON CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

FromJSON CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

NFData CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

Flat CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

Serialise CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

type Rep CoverageIndex Source #
Instance details

Defined in PlutusTx.Coverage

type Rep CoverageIndex = D1 (' MetaData "CoverageIndex" "PlutusTx.Coverage" "plutus-tx-1.0.0.0-4R3edYpC6C632G5Bo91y92" ' False ) ( C1 (' MetaCons "CoverageIndex" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "_coverageMetadata") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Map CoverageAnnotation CoverageMetadata ))))

newtype CoverageMetadata Source #

Instances

Instances details
Eq CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

Ord CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

Show CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

Generic CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

Semigroup CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

Monoid CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

ToJSON CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

FromJSON CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

NFData CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

Flat CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

Pretty CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

Serialise CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

type Rep CoverageMetadata Source #
Instance details

Defined in PlutusTx.Coverage

type Rep CoverageMetadata = D1 (' MetaData "CoverageMetadata" "PlutusTx.Coverage" "plutus-tx-1.0.0.0-4R3edYpC6C632G5Bo91y92" ' True ) ( C1 (' MetaCons "CoverageMetadata" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "_metadataSet") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Set Metadata ))))

data Metadata Source #

Constructors

ApplicationHeadSymbol String
IgnoredAnnotation

Location that is not interesting to cover. This is not generated by the compiler, but can be added later using addCoverageMetadata .

Instances

Instances details
Eq Metadata Source #
Instance details

Defined in PlutusTx.Coverage

Ord Metadata Source #
Instance details

Defined in PlutusTx.Coverage

Show Metadata Source #
Instance details

Defined in PlutusTx.Coverage

Generic Metadata Source #
Instance details

Defined in PlutusTx.Coverage

ToJSON Metadata Source #
Instance details

Defined in PlutusTx.Coverage

FromJSON Metadata Source #
Instance details

Defined in PlutusTx.Coverage

NFData Metadata Source #
Instance details

Defined in PlutusTx.Coverage

Flat Metadata Source #
Instance details

Defined in PlutusTx.Coverage

Pretty Metadata Source #
Instance details

Defined in PlutusTx.Coverage

Serialise Metadata Source #
Instance details

Defined in PlutusTx.Coverage

type Rep Metadata Source #
Instance details

Defined in PlutusTx.Coverage

type Rep Metadata = D1 (' MetaData "Metadata" "PlutusTx.Coverage" "plutus-tx-1.0.0.0-4R3edYpC6C632G5Bo91y92" ' False ) ( C1 (' MetaCons "ApplicationHeadSymbol" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 String )) :+: C1 (' MetaCons "IgnoredAnnotation" ' PrefixI ' False ) ( U1 :: Type -> Type ))

newtype CoverageData Source #

Instances

Instances details
Eq CoverageData Source #
Instance details

Defined in PlutusTx.Coverage

Ord CoverageData Source #
Instance details

Defined in PlutusTx.Coverage

Show CoverageData Source #
Instance details

Defined in PlutusTx.Coverage

Generic CoverageData Source #
Instance details

Defined in PlutusTx.Coverage

Semigroup CoverageData Source #
Instance details

Defined in PlutusTx.Coverage

Monoid CoverageData Source #
Instance details

Defined in PlutusTx.Coverage

ToJSON CoverageData Source #
Instance details

Defined in PlutusTx.Coverage

FromJSON CoverageData Source #
Instance details

Defined in PlutusTx.Coverage

NFData CoverageData Source #
Instance details

Defined in PlutusTx.Coverage

type Rep CoverageData Source #
Instance details

Defined in PlutusTx.Coverage

type Rep CoverageData = D1 (' MetaData "CoverageData" "PlutusTx.Coverage" "plutus-tx-1.0.0.0-4R3edYpC6C632G5Bo91y92" ' True ) ( C1 (' MetaCons "CoverageData" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "_coveredAnnotations") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Set CoverageAnnotation ))))

data CoverageReport Source #

Instances

Instances details
Eq CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

Ord CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

Show CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

Generic CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

Semigroup CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

Monoid CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

ToJSON CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

FromJSON CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

NFData CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

Pretty CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

type Rep CoverageReport Source #
Instance details

Defined in PlutusTx.Coverage

data CovLoc Source #

A source location for coverage

Instances

Instances details
Eq CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

Ord CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

Read CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

Show CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

Generic CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

ToJSON CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

FromJSON CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

NFData CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

Flat CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

Pretty CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

Serialise CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

type Rep CovLoc Source #
Instance details

Defined in PlutusTx.Coverage

addCoverageMetadata :: CoverageAnnotation -> Metadata -> CoverageIndex -> CoverageIndex Source #

Add metadata to a coverage annotation. Does nothing if the annotation is not in the index.