Class: KnapsackPro::TestFileFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/knapsack_pro/test_file_finder.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_file_pattern) ⇒ TestFileFinder

Returns a new instance of TestFileFinder.



7
8
9
# File 'lib/knapsack_pro/test_file_finder.rb', line 7

def initialize(test_file_pattern)
  @test_file_pattern = test_file_pattern
end

Class Method Details

.call(test_file_pattern) ⇒ Object



3
4
5
# File 'lib/knapsack_pro/test_file_finder.rb', line 3

def self.call(test_file_pattern)
  new(test_file_pattern).call
end

Instance Method Details

#callObject



11
12
13
14
15
16
17
# File 'lib/knapsack_pro/test_file_finder.rb', line 11

def call
  test_file_hashes = []
  test_files.each do |test_file_path|
    test_file_hashes << test_file_hash_for(test_file_path)
  end
  test_file_hashes
end