module RSpec::Coverage
Constants
- ACTIVE
- INACTIVE
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/rspec/coverage.rb, line 22 def self.config @config ||= Configuration.new root end
root()
click to toggle source
# File lib/rspec/coverage.rb, line 18 def self.root Dir.pwd end
start(*args, &block)
click to toggle source
# File lib/rspec/coverage.rb, line 26 def self.start *args, &block config.start(*args, &block) end
Public Instance Methods
deduct(coverage)
click to toggle source
# File lib/rspec/coverage/excludes.rb, line 24 def deduct coverage @overs.traverse coverage do |file, over, cover| next unless cover cover - (over || 0) end end