class CoverageReporter::FileReport

Overview

File coverage report entity for Coveralls API.

Defined in:

coverage_reporter/file_report.cr

Constant Summary

SEPARATOR = Path::SEPARATORS.first

Platform-dependant separator. / - for POSIX \ - for Windows

See Path::SEPARATORS

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String, coverage : Array(Hits | Nil), branches : Array(Hits) | Nil = nil, source_digest : String | Nil = nil, format : String | Nil = nil, base_path : String | Nil = nil) #

[View source]

Class Method Detail

def self.source_digest(filename : String) : String | Nil #

Returns MD5 hashsum of a file.


[View source]

Instance Method Detail

def branches : Array(UInt64)? #

[View source]
def coverage : Array(UInt64?) #

[View source]
def format : String? #

[View source]
def name : String #

[View source]
def to_h : Hash(Symbol, String | Array(Hits | Nil) | Array(Hits)) #

[View source]