class

CoverageReporter::GolangParser

Inherits CoverageReporter::BaseParser / Reference / Object

Constants

COVERAGE_RE = Regex.new("^[\\w.-]+\\/(?:[\\w.-]+\\/)?(?:[\\w.-]+\\/)?(?:v\\d+\\/)?(.*\\.go):(\\d+)\\.\\d+,(\\d+)\\.\\d+\\s+\\d+\\s+(\\d+)", 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