plutus-contract-certification-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.Contract.Test.Certification.Run

Synopsis

A certification report holds all the necessary information

data CertificationReport m Source #

Instances

Instances details
Show (CertificationReport m) Source # 
Instance details

Defined in Plutus.Contract.Test.Certification.Run

Generic (CertificationReport m) Source # 
Instance details

Defined in Plutus.Contract.Test.Certification.Run

Associated Types

type Rep (CertificationReport m) :: Type -> Type Source #

ToJSON (CertificationReport m) Source # 
Instance details

Defined in Plutus.Contract.Test.Certification.Run

type Rep (CertificationReport m) Source # 
Instance details

Defined in Plutus.Contract.Test.Certification.Run

type Rep (CertificationReport m) = D1 ('MetaData "CertificationReport" "Plutus.Contract.Test.Certification.Run" "plutus-contract-certification-1.2.0.0-AQtTej4EFWFIhaO9a4MRaA" 'False) (C1 ('MetaCons "CertificationReport" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_certRes_standardPropertyResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Result) :*: S1 ('MetaSel ('Just "_certRes_noLockedFundsResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Result))) :*: (S1 ('MetaSel ('Just "_certRes_noLockedFundsLightResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Result)) :*: S1 ('MetaSel ('Just "_certRes_standardCrashToleranceResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Result)))) :*: ((S1 ('MetaSel ('Just "_certRes_unitTestResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Result]) :*: S1 ('MetaSel ('Just "_certRes_coverageReport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CoverageReport)) :*: (S1 ('MetaSel ('Just "_certRes_whitelistOk") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "_certRes_whitelistResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Result)) :*: S1 ('MetaSel ('Just "_certRes_DLTests") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, Result)]))))))

There are a tonne of lenses

certRes_unitTestResults :: forall m m. Lens (CertificationReport m) (CertificationReport m) [Result] [Result] Source #

certRes_coverageReport :: forall m m. Lens (CertificationReport m) (CertificationReport m) CoverageReport CoverageReport Source #

certRes_whitelistResult :: forall m m. Lens (CertificationReport m) (CertificationReport m) (Maybe Result) (Maybe Result) Source #

certRes_DLTests :: forall m m. Lens (CertificationReport m) (CertificationReport m) [(String, Result)] [(String, Result)] Source #

and we have a function for running certification

data CertificationTask Source #

Instances

Instances details
Bounded CertificationTask Source # 
Instance details

Defined in Plutus.Contract.Test.Certification.Run

Enum CertificationTask Source # 
Instance details

Defined in Plutus.Contract.Test.Certification.Run

Eq CertificationTask Source # 
Instance details

Defined in Plutus.Contract.Test.Certification.Run

Ord CertificationTask Source # 
Instance details

Defined in Plutus.Contract.Test.Certification.Run

Show CertificationTask Source # 
Instance details

Defined in Plutus.Contract.Test.Certification.Run

certificationTasks :: Certification m -> [CertificationTask] Source #

The list of certification tasks that will be run for a given certification object.

certify :: forall m. ContractModel m => Certification m -> IO (CertificationReport m) Source #

Orphan instances

Generic Result Source # 
Instance details

Associated Types

type Rep Result :: Type -> Type Source #

Methods

from :: Result -> Rep Result x Source #

to :: Rep Result x -> Result Source #

Generic FailureReason Source # 
Instance details

Associated Types

type Rep FailureReason :: Type -> Type Source #

Methods

from :: FailureReason -> Rep FailureReason x Source #

to :: Rep FailureReason x -> FailureReason Source #

ToJSON SomeException Source # 
Instance details

Methods

toJSON :: SomeException -> Value

toEncoding :: SomeException -> Encoding

toJSONList :: [SomeException] -> Value

toEncodingList :: [SomeException] -> Encoding

ToJSON QCGen Source # 
Instance details

Methods

toJSON :: QCGen -> Value

toEncoding :: QCGen -> Encoding

toJSONList :: [QCGen] -> Value

toEncodingList :: [QCGen] -> Encoding

ToJSON Result Source # 
Instance details

Methods

toJSON :: Result -> Value

toEncoding :: Result -> Encoding

toJSONList :: [Result] -> Value

toEncodingList :: [Result] -> Encoding

ToJSON SMGen Source # 
Instance details

Methods

toJSON :: SMGen -> Value

toEncoding :: SMGen -> Encoding

toJSONList :: [SMGen] -> Value

toEncodingList :: [SMGen] -> Encoding

ToJSON FailureReason Source # 
Instance details

Methods

toJSON :: FailureReason -> Value

toEncoding :: FailureReason -> Encoding

toJSONList :: [FailureReason] -> Value

toEncodingList :: [FailureReason] -> Encoding

ToJSON Outcome Source # 
Instance details

Methods

toJSON :: Outcome -> Value

toEncoding :: Outcome -> Encoding

toJSONList :: [Outcome] -> Value

toEncodingList :: [Outcome] -> Encoding

ToJSON Result Source # 
Instance details

Methods

toJSON :: Result -> Value

toEncoding :: Result -> Encoding

toJSONList :: [Result] -> Value

toEncodingList :: [Result] -> Encoding

FromJSON SomeException Source # 
Instance details

Methods

parseJSON :: Value -> Parser SomeException

parseJSONList :: Value -> Parser [SomeException]

FromJSON QCGen Source # 
Instance details

Methods

parseJSON :: Value -> Parser QCGen

parseJSONList :: Value -> Parser [QCGen]

FromJSON Result Source # 
Instance details

Methods

parseJSON :: Value -> Parser Result

parseJSONList :: Value -> Parser [Result]

FromJSON SMGen Source # 
Instance details

Methods

parseJSON :: Value -> Parser SMGen

parseJSONList :: Value -> Parser [SMGen]