Class: MutationTester::BatchRunner::Result
- Inherits:
-
Struct
- Object
- Struct
- MutationTester::BatchRunner::Result
- Defined in:
- lib/mutation_tester/batch_runner.rb
Instance Attribute Summary collapse
-
#interrupted ⇒ Object
Returns the value of attribute interrupted.
-
#processed ⇒ Object
Returns the value of attribute processed.
-
#skipped ⇒ Object
Returns the value of attribute skipped.
-
#unchanged ⇒ Object
Returns the value of attribute unchanged.
Instance Method Summary collapse
Instance Attribute Details
#interrupted ⇒ Object
Returns the value of attribute interrupted
31 32 33 |
# File 'lib/mutation_tester/batch_runner.rb', line 31 def interrupted @interrupted end |
#processed ⇒ Object
Returns the value of attribute processed
31 32 33 |
# File 'lib/mutation_tester/batch_runner.rb', line 31 def processed @processed end |
#skipped ⇒ Object
Returns the value of attribute skipped
31 32 33 |
# File 'lib/mutation_tester/batch_runner.rb', line 31 def skipped @skipped end |
#unchanged ⇒ Object
Returns the value of attribute unchanged
31 32 33 |
# File 'lib/mutation_tester/batch_runner.rb', line 31 def unchanged @unchanged end |
Instance Method Details
#interrupted? ⇒ Boolean
56 57 58 |
# File 'lib/mutation_tester/batch_runner.rb', line 56 def interrupted? !!interrupted end |
#matched_any? ⇒ Boolean
52 53 54 |
# File 'lib/mutation_tester/batch_runner.rb', line 52 def matched_any? !(processed.empty? && skipped.empty? && (unchanged || []).empty?) end |
#success? ⇒ Boolean
32 33 34 |
# File 'lib/mutation_tester/batch_runner.rb', line 32 def success? processed.all?(&:passed?) end |
#survivors ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/mutation_tester/batch_runner.rb', line 36 def survivors processed.flat_map do |entry| (entry.results || []) .select { |r| Reporters::BaseReporter.status_for(r) == :survived } .map do |r| { file: entry.source_file, line: r[:line], type: r[:type], original: r[:original], mutated: r[:mutated] } end end end |