Class: Rcov::CoverageInfo

Class | Rcov::CoverageInfo
In: | lib/rcov.rb
Parent: | Object

Rcov::CoverageInfo is but a wrapper for an array, with some additional checks. It is returned by FileStatistics#coverage.

### Methods

[] new to_a

### Public Class methods

new(coverage_array)

### Public Instance methods

[](line)

Return the coverage status for the requested line. There are four possible return values:

- nil if there‘s no information for the requested line (i.e. it doesn‘t exist)
- true if the line was reported by Ruby as executed
- :inferred if rcov inferred it was executed, despite not being reported by Ruby.
- false otherwise, i.e. if it was not reported by Ruby and rcov‘s heuristics indicated that it was not executed

to_a()

Return an Array holding the code coverage information.

[Validate]