Class: Covered::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/covered/wrapper.rb

Overview

The base coverage output interface.

Direct Known Subclasses

Files, Wrapper

Instance Method Summary collapse

Instance Method Details

#accept?(path) ⇒ Boolean

Whether the given path should be accepted.

Returns:

  • (Boolean)


24
25
26
# File 'lib/covered/wrapper.rb', line 24

def accept?(path)
	true
end

#add(coverage) ⇒ Object

Add a coverage object.



37
38
# File 'lib/covered/wrapper.rb', line 37

def add(coverage)
end

#clearObject

Discard any coverage data and restart tracking.



14
15
# File 'lib/covered/wrapper.rb', line 14

def clear
end

#eachObject

Enumerate the coverage data.



43
44
# File 'lib/covered/wrapper.rb', line 43

def each
end

#expand_path(path) ⇒ Object

Expand a path relative to this output.



56
57
58
# File 'lib/covered/wrapper.rb', line 56

def expand_path(path)
	path
end

#finishObject

Stop tracking coverage.



18
19
# File 'lib/covered/wrapper.rb', line 18

def finish
end

#mark(path, lineno, value) ⇒ Object

Mark coverage for the given path and line number.



32
33
# File 'lib/covered/wrapper.rb', line 32

def mark(path, lineno, value)
end

#relative_path(path) ⇒ Object

Convert a path to a relative path.



49
50
51
# File 'lib/covered/wrapper.rb', line 49

def relative_path(path)
	path
end

#startObject

Start tracking coverage.



10
11
# File 'lib/covered/wrapper.rb', line 10

def start
end