Copyright | (c) 2022 8c6794b6 |
---|---|
License | BSD3 |
Maintainer | 8c6794b6 <[email protected]> |
Safe Haskell | None |
Language | Haskell2010 |
Trace.Hpc.Codecov.Report
Description
Generate Codecov report data.
Synopsis
- data Report = Report {}
- data CoverageEntry = CoverageEntry {}
- data Format
- type LineHits = [(Int, Hit)]
- data Hit
- type FunctionHits = [(Int, Int, Int, String)]
- type BranchHits = [(Int, Int, Bool, Int)]
- genReport :: Report -> IO ()
- genCoverageEntries :: Report -> IO [CoverageEntry]
- emitCoverage :: Format -> Maybe FilePath -> [CoverageEntry] -> IO ()
Types
Data type to hold information for generating test coverage report.
Constructors
Report | |
Fields
|
data CoverageEntry Source #
Single file entry in coverage report.
Constructors
CoverageEntry | |
Fields
|
Instances
Show CoverageEntry Source # | |
Defined in Trace.Hpc.Codecov.Report.Entry Methods showsPrec :: Int -> CoverageEntry -> ShowS # show :: CoverageEntry -> String # showList :: [CoverageEntry] -> ShowS # | |
Eq CoverageEntry Source # | |
Defined in Trace.Hpc.Codecov.Report.Entry Methods (==) :: CoverageEntry -> CoverageEntry -> Bool # (/=) :: CoverageEntry -> CoverageEntry -> Bool # |
Data type for generated report format.
Constructors
Codecov | Custom Codecov JSON format. See the Codecov documentation for detail. Since: 0.1.0.0 |
Lcov | LCOV tracefile format. See the geninfo manpage for detail. Since: 0.4.0.0 |
Cobertura | Cobertura XML file format. See the Cobertura website for detail. Since: 0.5.0.0 |
Data type to represent coverage of source code line.
type FunctionHits = [(Int, Int, Int, String)] Source #
Type synonym for tracking function enter count. Elements are start line number, end line number, execution count, and function name.
Since: 0.4.0.0
type BranchHits = [(Int, Int, Bool, Int)] Source #
Type synonym for tracking branch information. Elements are start
line number, branch block number, Bool
for the taken branch, and
execution count.
Since: 0.4.0.0
Functions
genCoverageEntries :: Report -> IO [CoverageEntry] Source #
Generate test coverage entries.