hevm-0.52.0: Symbolic EVM Evaluator
Safe HaskellSafe-Inferred
LanguageGHC2021

EVM.UnitTest

Synopsis

Documentation

makeVeriOpts :: UnitTestOptions s -> VeriOpts Source #

Generate VeriOpts from UnitTestOptions

unitTest :: UnitTestOptions RealWorld -> Contracts -> IO Bool Source #

Top level CLI endpoint for hevm test

initializeUnitTest :: UnitTestOptions s -> SolcContract -> Stepper s () Source #

Assuming a constructor is loaded, this stepper will run the constructor to create the test contract, give it an initial balance, and run `setUp()'.

symRun :: UnitTestOptions RealWorld -> VM RealWorld -> Sig -> IO (Text, Either Text Text) Source #

Define the thread spawner for symbolic tests

formatTestLogs :: (?context :: DappContext) => Map W256 Event -> [Expr Log] -> Text Source #

tick :: Text -> IO () Source #