Class: Mutant::Result::Subject Private

Inherits:
Object
  • Object
show all
Includes:
Mutant::Result, CoverageMetric
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.

Subject result

Constant Summary

Constants included from CoverageMetric

CoverageMetric::FULL_COVERAGE

Instance Method Summary collapse

Methods included from CoverageMetric

#coverage

Methods included from Mutant::Result

included, #overhead

Instance Method Details

#amount_mutation_resultsInteger

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)


175
176
177
# File 'lib/mutant/result.rb', line 175

def amount_mutation_results
  coverage_results.length
end

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


189
190
191
# File 'lib/mutant/result.rb', line 189

def amount_mutations
  subject.mutations.length
end

#amount_mutations_aliveInteger

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.

Number of alive mutations

Returns:

  • (Integer)


203
204
205
# File 'lib/mutant/result.rb', line 203

def amount_mutations_alive
  uncovered_results.length
end

#amount_mutations_killedInteger

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.

Number of killed mutations

Returns:

  • (Integer)


196
197
198
# File 'lib/mutant/result.rb', line 196

def amount_mutations_killed
  covered_results.length
end

#amount_timeoutsInteger

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)


182
183
184
# File 'lib/mutant/result.rb', line 182

def amount_timeouts
  coverage_results.count(&:timeout?)
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 subject was processed successful

Returns:

  • (Boolean)


160
161
162
# File 'lib/mutant/result.rb', line 160

def success?
  uncovered_results.empty?
end

#uncovered_resultsArray<Result::Coverage>

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.

Alive mutations

Returns:



167
168
169
# File 'lib/mutant/result.rb', line 167

def uncovered_results
  coverage_results.reject(&:success?)
end