plutus-contract-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.Contract.Test.Coverage

Synopsis

Documentation

getInvokedEndpoints :: [EmulatorEvent] -> Map ContractInstanceTag (Set String) Source #

Get every endpoint name that has been invoked in the emulator events in es indexed by ContractInstanceTag

getCoverageData :: [EmulatorEvent] -> CoverageData Source #

Collect every executed coverage annotation in the validators executed in es

newtype CoverageRef Source #

Constructors

CoverageRef (IORef CoverageData) 

writeCoverageReport :: String -> CoverageReport -> IO () Source #

Write a coverage report to name.html for the given index.