class Covered::Wrapper

Wraps another coverage output.

def accept?(path)

@returns [Boolean] Whether the wrapped output accepts the path.
@parameter path [String] The source path.
Whether the wrapped output accepts the given path.
def accept?(path)
	@output.accept?(path)
end

def add(coverage)

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

def clear

Clear coverage on the wrapped output.
def clear
	@output.clear
end

def each(&block)

Other tags:
    Yield: - the path to the file, and the execution counts.
def each(&block)
	@output.each(&block)
end

def expand_path(path)

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

def finish

Finish tracking coverage on the wrapped output.
def finish
	@output.finish
end

def initialize(output = Base.new)

@parameter output [Covered::Base] The output to wrap.
Initialize the wrapper with the given output.
def initialize(output = Base.new)
	@output = output
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 on the wrapped output.
def mark(path, lineno, value)
	@output.mark(path, lineno, value)
end

def relative_path(path)

@returns [String] The converted path.
@parameter path [String] The source path.
Convert a path using the wrapped output.
def relative_path(path)
	@output.relative_path(path)
end

def start

Start tracking coverage on the wrapped output.
def start
	@output.start
end

def to_h

@returns [Hash(String, Covered::Coverage)] Coverage keyed by path.
Convert all coverage data to a hash keyed by path.
def to_h
	to_enum(:each).collect{|coverage| [coverage.path, coverage]}.to_h
end