class CoverageReporter::GolangParser
- CoverageReporter::GolangParser
- CoverageReporter::BaseParser
- Reference
- Object
Defined in:
coverage_reporter/parsers/golang_parser.crConstant Summary
-
COVERAGE_RE =
Regex.new("^[\\w.-]+\\/(?:[\\w.-]+\\/)?(?:[\\w.-]+\\/)?(?:v\\d+\\/)?(.*\\.go):(\\d+)\\.\\d+,(\\d+)\\.\\d+\\s+\\d+\\s+(\\d+)", Regex::CompileOptions::MATCH_INVALID_UTF)
Instance Method Summary
-
#globs : Array(String)
Returns an array of globs that will be used to look for coverage reports.
-
#matches?(filename : String) : Bool
Checks if the file can be parsed with the parser.
-
#parse(filename : String) : Array(FileReport)
Parses the file and returns an array of
FileReport
which will be sent to Coveralls API.
Instance methods inherited from class CoverageReporter::BaseParser
file_report(name, coverage, branches = nil, source_digest = nil)
file_report,
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, forced : Bool = false)
new
Class methods inherited from class CoverageReporter::BaseParser
name : String
name
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.
def matches?(filename : String) : Bool
#
Description copied from class CoverageReporter::BaseParser
Checks if the file can be parsed with the parser.
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.