Module: DeepCover::Tools::OurCoverage

Defined in:
lib/deep_cover/tools/our_coverage.rb

Instance Method Summary collapse

Instance Method Details

#our_coverage(source, filename, lineno, **options) ⇒ Object



5
6
7
8
9
# File 'lib/deep_cover/tools/our_coverage.rb', line 5

def our_coverage(source, filename, lineno, **options)
  covered_code = CoveredCode.new(source: source, path: filename, lineno: lineno)
  Tools.execute_sample(covered_code)
  covered_code.line_coverage(**options)[(lineno - 1)..-1]
end