Class: Mutant::Result::Mutation

Inherits:
Object
  • Object
show all
Includes:
Mutant::Result
Defined in:
lib/mutant/result.rb

Overview

Mutation result

Instance Method Summary collapse

Methods included from Mutant::Result

#fail?, included, #overhead

Instance Method Details

#failed_test_resultsArray

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return failed test results

Returns:

  • (Array)


281
282
283
# File 'lib/mutant/result.rb', line 281

def failed_test_results
  test_results.select(&:fail?)
end

#success?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Test if mutation was handled successfully

Returns:

  • (Boolean)


271
272
273
# File 'lib/mutant/result.rb', line 271

def success?
  test_results.any?(&:success?)
end