Class: Uncov::Finder::FileSystem

Inherits:
Object
  • Object
show all
Includes:
Cache
Defined in:
lib/uncov/finder/file_system.rb

Overview

collect files and their lines content from system

Instance Method Summary collapse

Instance Method Details

#code_filesObject



7
8
9
10
11
12
13
# File 'lib/uncov/finder/file_system.rb', line 7

def code_files
  cache(:code_files) do
    list_files(Uncov.configuration.relevant_files).to_h do |file_name|
      [file_name, read_lines(file_name)]
    end
  end
end

#simplecov_trigger_filesObject



15
16
17
# File 'lib/uncov/finder/file_system.rb', line 15

def simplecov_trigger_files
  code_files.keys + test_files
end