Class: Mutant::Result::Env Private

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

Overview

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

Env result object

Constant Summary

Constants included from CoverageMetric

CoverageMetric::FULL_COVERAGE

Instance Method Summary collapse

Methods included from Mutant::Result

included

Instance Method Details

#amount_mutationsInteger

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:

  • (Integer)


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

def amount_mutations = env.mutations.length

#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:



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

def failed_subject_results = subject_results.reject(&:success?)

#stop?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 processing needs to stop

Returns:

  • (Boolean)


101
102
103
# File 'lib/mutant/result.rb', line 101

def stop?
  env.config.fail_fast && !subject_results.all?(&: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)


76
77
78
# File 'lib/mutant/result.rb', line 76

def success?
  coverage.eql?(Rational(1))
end