Class: SixthSense::MutationMatrixResult

Inherits:
Object
  • Object
show all
Defined in:
lib/sixth_sense/mutation_matrix_producer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ MutationMatrixResult

Returns a new instance of MutationMatrixResult.



17
18
19
# File 'lib/sixth_sense/mutation_matrix_producer.rb', line 17

def initialize(payload)
  @payload = payload
end

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload.



16
17
18
# File 'lib/sixth_sense/mutation_matrix_producer.rb', line 16

def payload
  @payload
end

Instance Method Details

#write(cache_root) ⇒ Object



21
22
23
24
25
26
# File 'lib/sixth_sense/mutation_matrix_producer.rb', line 21

def write(cache_root)
  cache = MutationCache.new(root: cache_root)
  test_files.each do |test_file|
    cache.write(Model::TestFile.new(path: test_file, framework: :rspec, test_cases: [], sut_candidates: []), payload_for(test_file))
  end
end