Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CertificationReport m
- certResJSON :: CertificationReport m -> String
- certRes_standardPropertyResult :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) Result Result
- certRes_noLockedFundsResult :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) ( Maybe Result ) ( Maybe Result )
- certRes_noLockedFundsLightResult :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) ( Maybe Result ) ( Maybe Result )
- certRes_standardCrashToleranceResult :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) ( Maybe Result ) ( Maybe Result )
- certRes_unitTestResults :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) [ Result ] [ Result ]
- certRes_coverageReport :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) CoverageReport CoverageReport
- certRes_whitelistOk :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) ( Maybe Bool ) ( Maybe Bool )
- certRes_whitelistResult :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) ( Maybe Result ) ( Maybe Result )
- certRes_DLTests :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) [( String , Result )] [( String , Result )]
-
data
CertificationOptions
=
CertificationOptions
{
- certOptNumTests :: Int
- certOptOutput :: Bool
- certEventChannel :: Maybe ( Chan CertificationEvent )
- data CertificationEvent
- data CertificationTask
- certificationTasks :: Certification m -> [ CertificationTask ]
- hasQuickCheckTests :: CertificationTask -> Bool
- defaultCertificationOptions :: CertificationOptions
- certify :: forall m. ContractModel m => Certification m -> IO ( CertificationReport m)
- certifyWithOptions :: forall m. ContractModel m => CertificationOptions -> Certification m -> IO ( CertificationReport m)
A certification report holds all the necessary information
data CertificationReport m Source #
Instances
certResJSON :: CertificationReport m -> String Source #
There are a tonne of lenses
certRes_standardPropertyResult :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) Result Result Source #
certRes_noLockedFundsResult :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) ( Maybe Result ) ( Maybe Result ) Source #
certRes_noLockedFundsLightResult :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) ( Maybe Result ) ( Maybe Result ) Source #
certRes_standardCrashToleranceResult :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) ( Maybe Result ) ( Maybe Result ) Source #
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_whitelistOk :: forall m m. Lens ( CertificationReport m) ( CertificationReport m) ( Maybe Bool ) ( Maybe Bool ) 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 CertificationOptions Source #
data CertificationEvent Source #
QuickCheckTestEvent ( Maybe Bool ) |
Nothing if discarded, otherwise test result |
QuickCheckNumTestsEvent Int | |
StartCertificationTask CertificationTask | |
FinishedTask Bool | |
CertificationDone |
Instances
Eq CertificationEvent Source # | |
Defined in Plutus.Contract.Test.Certification.Run (==) :: CertificationEvent -> CertificationEvent -> Bool Source # (/=) :: CertificationEvent -> CertificationEvent -> Bool Source # |
|
Show CertificationEvent Source # | |
Defined in Plutus.Contract.Test.Certification.Run |
data CertificationTask Source #
UnitTestsTask | |
StandardPropertyTask | |
NoLockedFundsTask |
DoubleSatisfactionTask |
NoLockedFundsLightTask | |
CrashToleranceTask | |
WhitelistTask | |
DLTestsTask |
Instances
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 #
certifyWithOptions :: forall m. ContractModel m => CertificationOptions -> Certification m -> IO ( CertificationReport m) Source #
Orphan instances
Generic Result Source # | |
Generic FailureReason Source # | |
from :: FailureReason -> Rep FailureReason x Source # to :: Rep FailureReason x -> FailureReason Source # |
|
ToJSON SMGen Source # | |
ToJSON QCGen Source # | |
ToJSON Result Source # | |
ToJSON SomeException Source # | |
toJSON :: SomeException -> Value Source # toEncoding :: SomeException -> Encoding Source # toJSONList :: [ SomeException ] -> Value Source # toEncodingList :: [ SomeException ] -> Encoding Source # |
|
ToJSON FailureReason Source # | |
toJSON :: FailureReason -> Value Source # toEncoding :: FailureReason -> Encoding Source # toJSONList :: [ FailureReason ] -> Value Source # toEncodingList :: [ FailureReason ] -> Encoding Source # |
|
ToJSON Outcome Source # | |
ToJSON Result Source # | |
FromJSON SMGen Source # | |
FromJSON QCGen Source # | |
FromJSON Result Source # | |
FromJSON SomeException Source # | |
parseJSON :: Value -> Parser SomeException Source # parseJSONList :: Value -> Parser [ SomeException ] Source # |