Class SimpleCov::SourceFile
In: lib/simplecov/source_file.rb
Parent: Object

Representation of a source file including it‘s coverage data, source code, source lines and featuring helpers to interpret that data.

Methods

Classes and Modules

Class SimpleCov::SourceFile::Line

External Aliases

src -> source

Attributes

coverage  [R]  The array of coverage data received from the Coverage.result
filename  [R]  The full path to this source file (e.g. /User/colszowka/projects/simplecov/lib/simplecov/source_file.rb)
src  [R]  The source code for this file. Aliased as :source

Public Class methods

Public Instance methods

The coverage for this file in percent. 0 if the file has no relevant lines

Returns all source lines for this file as instances of SimpleCov::SourceFile::Line, and thus including coverage data. Aliased as :source_lines

Returns all lines that should have been, but were not covered as instances of SimpleCov::SourceFile::Line

Returns all lines that are not relevant for coverage as SimpleCov::SourceFile::Line instances

source_lines()

Alias for lines

[Validate]