lcov_ex v0.1.0 LcovEx.Stats View Source
Output parser for :cover.analyse/3
Link to this section Summary
Functions
Function coverage data parser. Discards BEAM file :__info__/1
function data.
Function coverage data parser. Discards BEAM file line 0
data.
Link to this section Types
Specs
Specs
Specs
Link to this section Functions
Specs
function_coverage_data(cover_analyze_function_output()) :: {[coverage_info(), ...], %{fnf: integer(), fnh: integer()}}
Function coverage data parser. Discards BEAM file :__info__/1
function data.
Examples
iex> LcovEx.Stats.function_coverage_data([{{MyModule, :__info__, 1}, 3}, {{MyModule, :foo, 2}, 0}])
{[{"foo/2", 0}], %{fnf: 1, fnh: 0}}
Specs
line_coverage_data(cover_analyze_line_output()) :: {[coverage_info(), ...], %{lf: integer(), lh: integer()}}
Function coverage data parser. Discards BEAM file line 0
data.
Examples
iex> LcovEx.Stats.line_coverage_data([{{MyModule, 0}, 3}, {{MyModule, 0}, 0}, {{MyModule, 8}, 0}])
{[{"8", 0}], %{lf: 1, lh: 0}}