glcov/lcov

Values

pub fn normalise_path(path: String) -> String

lcov consumers expect forward slashes even on Windows.

pub fn parse(
  contents: String,
) -> Result(List(#(String, List(#(Int, Bool)))), String)

Parse the line subset of lcov emitted by c8.

pub fn render(report: coverage.Report) -> String

Serialise a coverage report as an lcov.info file.

Function records are emitted when function data is present. Branch records are absent because Erlang cover does not provide branch data.

✨ Search Document