Copyright | (c) 2020 8c6794b6 |
---|---|
License | BSD3 |
Maintainer | 8c6794b6 <8c6794b6@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Generate Codecov report data.
Synopsis
- data Report = Report {
- reportTix :: FilePath
- reportMixDirs :: [FilePath]
- reportSrcDirs :: [FilePath]
- reportExcludes :: [String]
- reportOutFile :: Maybe FilePath
- reportVerbose :: Bool
- data CoverageEntry = CoverageEntry {}
- type LineHits = [(Int, Hit)]
- data Hit
- genReport :: Report -> IO ()
- genCoverageEntries :: Report -> IO [CoverageEntry]
- emitCoverageJSON :: 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.
See the Codecov API for detail.
CoverageEntry | |
|
Instances
Eq CoverageEntry Source # | |
Defined in Trace.Hpc.Codecov.Report (==) :: CoverageEntry -> CoverageEntry -> Bool # (/=) :: CoverageEntry -> CoverageEntry -> Bool # | |
Show CoverageEntry Source # | |
Defined in Trace.Hpc.Codecov.Report showsPrec :: Int -> CoverageEntry -> ShowS # show :: CoverageEntry -> String # showList :: [CoverageEntry] -> ShowS # |
Data type to represent coverage of source code line.
Functions
genCoverageEntries :: Report -> IO [CoverageEntry] Source #
Generate test coverage entries.
:: Maybe FilePath | |
-> [CoverageEntry] | Coverage entries to write. |
-> IO () |
Emit simple coverage JSON data.