Class: Covered::Forks

Inherits:
Wrapper show all
Defined in:
lib/covered/forks.rb

Overview

Tracks coverage across forked child processes.

Instance Attribute Summary

Attributes inherited from Wrapper

#The wrapped output., #output

Instance Method Summary collapse

Methods inherited from Wrapper

#accept?, #add, #clear, #each, #expand_path, #initialize, #mark, #relative_path, #to_h

Methods inherited from Base

#accept?, #add, #clear, #each, #expand_path, #mark, #relative_path

Constructor Details

This class inherits a constructor from Covered::Wrapper

Instance Method Details

#finishObject

Stop tracking coverage and remove the fork handler state.



19
20
21
22
23
# File 'lib/covered/forks.rb', line 19

def finish
	Handler.finish
	
	super
end

#startObject

Start tracking coverage and install the fork handler.



12
13
14
15
16
# File 'lib/covered/forks.rb', line 12

def start
	super
	
	Handler.start(self)
end