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)


293
294
295
# File 'lib/mutant/result.rb', line 293

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 handeled successfully

Returns:

  • (Boolean)


283
284
285
# File 'lib/mutant/result.rb', line 283

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