class CoverageReporter::GcovParser

Defined in:

coverage_reporter/parsers/gcov_parser.cr

Constant Summary

COVERAGE_RE = Regex.new("^\\s*([0-9]+|-|#####):\\s*([0-9]+):(.*)", Regex::CompileOptions::MATCH_INVALID_UTF)

Constructors

Instance Method Summary

Instance methods inherited from class CoverageReporter::BaseParser

globs : Array(String) globs, matches?(filename : String) : Bool matches?, parse(filename : String) : Array(FileReport) parse

Constructor methods inherited from class CoverageReporter::BaseParser

new(base_path : String | Nil = nil) new

Class methods inherited from class CoverageReporter::BaseParser

name : String name, source_digest(filename : String) : String | Nil source_digest

Constructor Detail

def self.new(base_path : String | Nil) #

Use base_path to join with paths found in reports.


[View source]

Instance Method Detail

def globs : Array(String) #
Description copied from class CoverageReporter::BaseParser

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


[View source]
def matches?(filename : String) : Bool #
Description copied from class CoverageReporter::BaseParser

Checks if the file can be parsed with the parser.


[View source]
def parse(filename : String) : Array(FileReport) #
Description copied from class CoverageReporter::BaseParser

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


[View source]