Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CoverageAnnotation
- newtype CoverageIndex = CoverageIndex {}
- newtype CoverageMetadata = CoverageMetadata {}
- data Metadata
- newtype CoverageData = CoverageData {}
- data CoverageReport = CoverageReport {}
- data CovLoc = CovLoc {}
- covLocFile :: Lens' CovLoc String
- covLocStartLine :: Lens' CovLoc Int
- covLocEndLine :: Lens' CovLoc Int
- covLocStartCol :: Lens' CovLoc Int
- covLocEndCol :: Lens' CovLoc Int
- metadataSet :: Iso' CoverageMetadata (Set Metadata)
- coverageAnnotations :: Getter CoverageIndex (Set CoverageAnnotation)
- ignoredAnnotations :: Getter CoverageIndex (Set CoverageAnnotation)
- coverageMetadata :: Iso' CoverageIndex (Map CoverageAnnotation CoverageMetadata)
- coveredAnnotations :: Iso' CoverageData (Set CoverageAnnotation)
- addCoverageMetadata :: CoverageAnnotation -> Metadata -> CoverageIndex -> CoverageIndex
- addLocationToCoverageIndex :: MonadWriter CoverageIndex m => CovLoc -> m CoverageAnnotation
- addBoolCaseToCoverageIndex :: MonadWriter CoverageIndex m => CovLoc -> Bool -> CoverageMetadata -> m CoverageAnnotation
- coverageDataFromLogMsg :: String -> CoverageData
Documentation
data CoverageAnnotation Source #
Instances
newtype CoverageIndex Source #
This type keeps track of all coverage annotations and where they have been inserted / what annotations are expected to be found when executing a piece of code.
Instances
newtype CoverageMetadata Source #
Instances
ApplicationHeadSymbol String | |
IgnoredAnnotation | Location that is not interesting to cover. This is not generated by the
compiler, but can be added later using |
Instances
newtype CoverageData Source #
Instances
data CoverageReport Source #
Instances
A source location for coverage
CovLoc | |
|
Instances
covLocFile :: Lens' CovLoc String Source #
covLocStartLine :: Lens' CovLoc Int Source #
covLocEndLine :: Lens' CovLoc Int Source #
covLocStartCol :: Lens' CovLoc Int Source #
covLocEndCol :: Lens' CovLoc Int Source #
metadataSet :: Iso' CoverageMetadata (Set Metadata) Source #
coverageAnnotations :: Getter CoverageIndex (Set CoverageAnnotation) Source #
ignoredAnnotations :: Getter CoverageIndex (Set CoverageAnnotation) Source #
coveredAnnotations :: Iso' CoverageData (Set CoverageAnnotation) Source #
addCoverageMetadata :: CoverageAnnotation -> Metadata -> CoverageIndex -> CoverageIndex Source #
Add metadata to a coverage annotation. Does nothing if the annotation is not in the index.
addLocationToCoverageIndex :: MonadWriter CoverageIndex m => CovLoc -> m CoverageAnnotation Source #
Include a location coverage annotation in the index
addBoolCaseToCoverageIndex :: MonadWriter CoverageIndex m => CovLoc -> Bool -> CoverageMetadata -> m CoverageAnnotation Source #
Include a boolean coverage annotation in the index