Sha256: bd41af2c7f3f385191fe91e0d184db90e140328b1c06ccede4b73a139904ae8d
Contents?: true
Size: 600 Bytes
Versions: 2
Compression:
Stored size: 600 Bytes
Contents
# -*- encoding: utf-8 -*- module Coco # I retrieve the list of uncovered (0%) .rb files. class UncoveredLister # sources - Array of String list of filenames. # covered - Hash raw coverage from the domain. def initialize(sources, covered) @source_files = Helpers.expand(sources) @covered_files = Helpers.expand(covered.keys) end # Returns Array of 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coco-0.12.0 | lib/coco/lister/uncovered_lister.rb |
coco-0.11.0 | lib/coco/lister/uncovered_lister.rb |