Class: Mutant::Result::Env

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

Overview

Env result object

Constant Summary

Constants included from Coverage

Coverage::FULL_COVERAGE

Instance Method Summary collapse

Methods included from Coverage

#coverage

Methods included from Mutant::Result

included, #overhead

Instance Method Details

#amount_mutationsFixnum

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.

Amount of mutations

Returns:

  • (Fixnum)


108
109
110
# File 'lib/mutant/result.rb', line 108

def amount_mutations
  env.mutations.length
end

#amount_subjectsFixnum

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.

Amount of subjects

Returns:

  • (Fixnum)


117
118
119
# File 'lib/mutant/result.rb', line 117

def amount_subjects
  env.subjects.length
end

#failed_subject_resultsArray<Result::Subject>

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.

Failed subject results

Returns:



94
95
96
# File 'lib/mutant/result.rb', line 94

def failed_subject_results
  subject_results.reject(&:success?)
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 run is successful

Returns:

  • (Boolean)


84
85
86
# File 'lib/mutant/result.rb', line 84

def success?
  coverage.eql?(env.config.expected_coverage)
end