Sha256: 4e6660d2c1cce75f5120216094a9000cf842d34576d7856a23856ec9103d85d9

Contents?: true

Size: 608 Bytes

Versions: 9

Compression:

Stored size: 608 Bytes

Contents

# -*- encoding: utf-8 -*-

module Coco

  # I retrieve the list of uncovered (0%) .rb files.
  class UncoveredLister
    
    # @param [Array<String>] sources List of filenames
    # @param [Hash] covered Raw coverage from the domain
    def initialize sources, covered
      @source_files = Helpers.expand(sources)
      @covered_files = Helpers.expand(covered.keys)
    end
    
    # @return [Array<String>] List of uncovered filenames
    def list
      list = []
      @source_files.each do |elem|
        list << elem unless @covered_files.include?(elem)
      end
      list
    end
    
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
coco-0.9 lib/coco/lister/uncovered_lister.rb
coco-0.8 lib/coco/lister/uncovered_lister.rb
coco-0.7.1 lib/coco/lister/uncovered_lister.rb
coco-0.7 lib/coco/lister/uncovered_lister.rb
coco-0.6 lib/coco/lister/uncovered_lister.rb
coco-0.5.1 lib/coco/lister/uncovered_lister.rb
coco-0.5 lib/coco/lister/uncovered_lister.rb
coco-0.4.2 lib/coco/lister/uncovered_lister.rb
coco-0.4.1 lib/coco/lister/uncovered_lister.rb