class Base
The base coverage output interface.
Definitions
def start
Start tracking coverage.
Implementation
def start
end
def clear
Discard any coverage data and restart tracking.
Implementation
def clear
end
def finish
Stop tracking coverage.
Implementation
def finish
end
def accept?(path)
Whether the given path should be accepted.
Signature
-
parameter
pathString The source path.
-
returns
Boolean Whether the path should be included.
Implementation
def accept?(path)
true
end
def mark(path, lineno, value)
Mark coverage for the given path and line number.
Signature
-
parameter
pathString The source path.
-
parameter
linenoInteger The starting line number.
-
parameter
valueInteger | Array(Integer) The execution count or counts to add.
Implementation
def mark(path, lineno, value)
end
def add(coverage)
Add a coverage object.
Signature
-
parameter
coverageCovered::Coverage The coverage object to add.
Implementation
def add(coverage)
end
def each
Enumerate the coverage data.
Signature
-
yields
{|coverage| ...} -
parameter
coverageCoverage The coverage data, including the source file and execution counts.
-
parameter
Implementation
def each
end
def relative_path(path)
Convert a path to a relative path.
Signature
-
parameter
pathString The source path.
-
returns
String The relative path.
Implementation
def relative_path(path)
path
end
def expand_path(path)
Expand a path relative to this output.
Signature
-
parameter
pathString The path to expand.
-
returns
String The expanded path.
Implementation
def expand_path(path)
path
end