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 {}
- 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 # | |
ToJSON SomeException Source # | |
toJSON :: SomeException -> Value toEncoding :: SomeException -> Encoding toJSONList :: [SomeException] -> Value toEncodingList :: [SomeException] -> Encoding | |
ToJSON QCGen Source # | |
toJSON :: QCGen -> Value toEncoding :: QCGen -> Encoding toJSONList :: [QCGen] -> Value toEncodingList :: [QCGen] -> Encoding | |
ToJSON Result Source # | |
toJSON :: Result -> Value toEncoding :: Result -> Encoding toJSONList :: [Result] -> Value toEncodingList :: [Result] -> Encoding | |
ToJSON SMGen Source # | |
toJSON :: SMGen -> Value toEncoding :: SMGen -> Encoding toJSONList :: [SMGen] -> Value toEncodingList :: [SMGen] -> Encoding | |
ToJSON FailureReason Source # | |
toJSON :: FailureReason -> Value toEncoding :: FailureReason -> Encoding toJSONList :: [FailureReason] -> Value toEncodingList :: [FailureReason] -> Encoding | |
ToJSON Outcome Source # | |
toJSON :: Outcome -> Value toEncoding :: Outcome -> Encoding toJSONList :: [Outcome] -> Value toEncodingList :: [Outcome] -> Encoding | |
ToJSON Result Source # | |
toJSON :: Result -> Value toEncoding :: Result -> Encoding toJSONList :: [Result] -> Value toEncodingList :: [Result] -> Encoding | |
FromJSON SomeException Source # | |
parseJSON :: Value -> Parser SomeException parseJSONList :: Value -> Parser [SomeException] | |
FromJSON QCGen Source # | |
parseJSON :: Value -> Parser QCGen parseJSONList :: Value -> Parser [QCGen] | |
FromJSON Result Source # | |
parseJSON :: Value -> Parser Result parseJSONList :: Value -> Parser [Result] | |
FromJSON SMGen Source # | |
parseJSON :: Value -> Parser SMGen parseJSONList :: Value -> Parser [SMGen] |