class Covered::Base

The base coverage output interface.

def accept?(path)

@returns [Boolean] Whether the path should be included.
@parameter path [String] The source path.
Whether the given path should be accepted.
def accept?(path)
	true
end

def add(coverage)

@parameter coverage [Covered::Coverage] The coverage object to add.
Add a coverage object.
def add(coverage)
end

def clear

Discard any coverage data and restart tracking.
def clear
end

def each

@parameter coverage [Coverage] The coverage data, including the source file and execution counts.
@yields {|coverage| ...}
Enumerate the coverage data.
def each
end

def expand_path(path)

@returns [String] The expanded path.
@parameter path [String] The path to expand.
Expand a path relative to this output.
def expand_path(path)
	path
end

def finish

Stop tracking coverage.
def finish
end

def mark(path, lineno, value)

@parameter value [Integer | Array(Integer)] The execution count or counts to add.
@parameter lineno [Integer] The starting line number.
@parameter path [String] The source path.
Mark coverage for the given path and line number.
def mark(path, lineno, value)
end

def relative_path(path)

@returns [String] The relative path.
@parameter path [String] The source path.
Convert a path to a relative path.
def relative_path(path)
	path
end

def start

Start tracking coverage.
def start
end