Sha256: 46480966c7a5bdbeba8ce50fc185b593ba6af29c4f360daf28bd820829eac2f2

Contents?: true

Size: 326 Bytes

Versions: 8

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
deep-cover-0.5.2 lib/deep_cover/tools/our_coverage.rb
deep-cover-0.5.1 lib/deep_cover/tools/our_coverage.rb
deep-cover-0.5.0 lib/deep_cover/tools/our_coverage.rb
deep-cover-0.4.0 lib/deep_cover/tools/our_coverage.rb
deep-cover-0.3.0 lib/deep_cover/tools/our_coverage.rb
deep-cover-0.2.0 lib/deep_cover/tools/our_coverage.rb
deep-cover-0.1.16 lib/deep_cover/tools/our_coverage.rb
deep-cover-0.1.15 lib/deep_cover/tools/our_coverage.rb