Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Integration with integrational testing engine (pun intended).
Synopsis
- newtype PureM a = PureM {}
- runEmulatedT :: ImplicitAlias -> EmulatedT PureM a -> IO a
- data PureState
- data TestError
- = UnexpectedTypeCheckError TCError
- | UnexpectedStorageType (MismatchError T)
- | UnexpectedBigMapType Natural (MismatchError T)
- | CustomTestError Text
- emulatedImpl :: EmulatedImpl PureM
- clevelandOpsImpl :: Sender -> ClevelandOpsImpl PureM
- clevelandMiscImpl :: ClevelandMiscImpl PureM
- initEnv :: ImplicitAlias -> PureState
- failedInsideBranch :: Text -> SomeException -> FailedInBranch
- moneybagAlias :: ImplicitAlias
- emptyScenarioBranch :: ScenarioBranchName
- psSecretKeys :: Lens' PureState (Map ImplicitAddress SecretKey)
- psDefaultAliasesCounter :: Lens' PureState DefaultAliasCounter
- psRefillableAddresses :: Lens' PureState (Set ImplicitAddress)
- psNow :: Lens' PureState Timestamp
- psLevel :: Lens' PureState Natural
- psMinBlockTime :: Lens' PureState Natural
- psGState :: Lens' PureState GState
Documentation
Instances
MonadFail PureM Source # | |
Defined in Test.Cleveland.Internal.Pure | |
MonadIO PureM Source # | |
Defined in Test.Cleveland.Internal.Pure | |
Applicative PureM Source # | |
Functor PureM Source # | |
Monad PureM Source # | |
MonadScenario PureM Source # | |
Defined in Test.Cleveland.Internal.Scenario | |
MonadCatch PureM Source # | |
MonadThrow PureM Source # | |
Defined in Test.Cleveland.Internal.Pure | |
MonadState PureState PureM Source # | |
MonadWriter LogsInfo PureM Source # | |
MonadReader (IORef PureState) PureM Source # | |
runEmulatedT :: ImplicitAlias -> EmulatedT PureM a -> IO a Source #
Capability implementations
UnexpectedTypeCheckError TCError | |
UnexpectedStorageType (MismatchError T) | |
UnexpectedBigMapType Natural (MismatchError T) | |
CustomTestError Text |
Instances
Exception TestError Source # | |
Defined in Test.Cleveland.Internal.Pure toException :: TestError -> SomeException # fromException :: SomeException -> Maybe TestError # displayException :: TestError -> String # | |
Show TestError Source # | |
Buildable TestError Source # | |
Defined in Test.Cleveland.Internal.Pure |
Initial environment for Emulated tests
initEnv :: ImplicitAlias -> PureState Source #
Support functions
failedInsideBranch :: Text -> SomeException -> FailedInBranch Source #
emptyScenarioBranch :: ScenarioBranchName Source #
Make branch names for a case when we are not within any branch.
Optics
psSecretKeys :: Lens' PureState (Map ImplicitAddress SecretKey) Source #