class Covered::Filter
Filters coverage before forwarding it to another output.
def accept?(path)
@parameter path [String] The source path.
Whether the given path is accepted by this filter and its output.
def accept?(path) match?(path) and super end
def each(&block)
- Yield: - the path to the file, and the execution counts.
def each(&block) @output.each do |coverage| yield coverage if accept?(coverage.path) end end
def mark(path, lineno, value)
@parameter lineno [Integer] The starting line number.
@parameter path [String] The source path.
Mark coverage if the path is accepted by this filter.
def mark(path, lineno, value) @output.mark(path, lineno, value) if accept?(path) end
def match?(path)
@parameter path [String] The source path.
Whether the given path matches this filter.
def match?(path) true end