hpc-codecov-0.3.0.0: Generate codecov report from hpc data
Copyright(c) 2020 8c6794b6
LicenseBSD3
Maintainer8c6794b6 <8c6794b6@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Trace.Hpc.Codecov.Report

Description

Generate Codecov report data.

Synopsis

Types

data Report Source #

Data type to hold information for generating test coverage report.

Constructors

Report 

Fields

Instances

Instances details
Eq Report Source # 
Instance details

Defined in Trace.Hpc.Codecov.Report

Methods

(==) :: Report -> Report -> Bool #

(/=) :: Report -> Report -> Bool #

Show Report Source # 
Instance details

Defined in Trace.Hpc.Codecov.Report

Semigroup Report Source # 
Instance details

Defined in Trace.Hpc.Codecov.Report

Monoid Report Source # 
Instance details

Defined in Trace.Hpc.Codecov.Report

data CoverageEntry Source #

Single file entry in coverage report.

See the Codecov documentation for detail.

Constructors

CoverageEntry 

Fields

Instances

Instances details
Eq CoverageEntry Source # 
Instance details

Defined in Trace.Hpc.Codecov.Report

Show CoverageEntry Source # 
Instance details

Defined in Trace.Hpc.Codecov.Report

type LineHits = [(Int, Hit)] Source #

Pair of line number and hit tag.

data Hit Source #

Data type to represent coverage of source code line.

Constructors

Missed

The line is not covered at all.

Partial

The line is partially covered.

Full

The line is fully covered.

Instances

Instances details
Eq Hit Source # 
Instance details

Defined in Trace.Hpc.Codecov.Report

Methods

(==) :: Hit -> Hit -> Bool #

(/=) :: Hit -> Hit -> Bool #

Show Hit Source # 
Instance details

Defined in Trace.Hpc.Codecov.Report

Methods

showsPrec :: Int -> Hit -> ShowS #

show :: Hit -> String #

showList :: [Hit] -> ShowS #

Functions

genReport :: Report -> IO () Source #

Generate report data from options.

genCoverageEntries :: Report -> IO [CoverageEntry] Source #

Generate test coverage entries.

emitCoverageJSON Source #

Arguments

:: Maybe FilePath

Just output file name, or Nothing for stdout.

-> [CoverageEntry]

Coverage entries to write.

-> IO () 

Emit simple coverage JSON data.