Copyright | (c) 2022 8c6794b6 |
---|---|
License | BSD3 |
Maintainer | 8c6794b6 <8c6794b6@gmail.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Generate Codecov report data.
Synopsis
- data Report = Report {
- reportTix :: FilePath
- reportMixDirs :: [FilePath]
- reportSrcDirs :: [FilePath]
- reportExcludes :: [String]
- reportOutFile :: Maybe FilePath
- reportVerbose :: Bool
- reportFormat :: Format
- 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.
Report | |
|
data CoverageEntry Source #
Single file entry in coverage report.
CoverageEntry | |
|
Instances
Show CoverageEntry Source # | |
Defined in Trace.Hpc.Codecov.Report showsPrec :: Int -> CoverageEntry -> ShowS # show :: CoverageEntry -> String # showList :: [CoverageEntry] -> ShowS # | |
Eq CoverageEntry Source # | |
Defined in Trace.Hpc.Codecov.Report (==) :: CoverageEntry -> CoverageEntry -> Bool # (/=) :: CoverageEntry -> CoverageEntry -> Bool # |
Data type for generated report format.
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 |
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.