class

CoverageReporter::LcovParser

Inherits CoverageReporter::BaseParser / Reference / Object

Constants

BRANCH_COVERAGE_RE = Regex.new("\\ABRDA:(\\d+),(\\d+),(\\d+),(\\d+|-)", Regex::CompileOptions::MATCH_INVALID_UTF)
END_RE = Regex.new("\\Aend_of_record", Regex::CompileOptions::MATCH_INVALID_UTF)
LINE_COVERAGE_RE = Regex.new("\\ADA:(\\d+),(\\d+)", Regex::CompileOptions::MATCH_INVALID_UTF)
SOURCE_FILE_RE = Regex.new("\\ASF:(.+)", Regex::CompileOptions::MATCH_INVALID_UTF)

Instance methods

globs

Returns an array of globs that will be used to look for coverage reports.

Source
matches?(filename : String) : Bool

Checks if the file can be parsed with the parser.

Source
parse(filename : String) : Array(FileReport)

Parses the file and returns an array of FileReport which will be sent to Coveralls API.

Source

Nested types