Class: Mutant::Result::Subject Private

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

Coverage::FULL_COVERAGE

Instance Method Summary collapse

Methods included from Coverage

#coverage

Methods included from Mutant::Result

included, #overhead

Instance Method Details

#alive_mutation_resultsArray<Result::Mutation>

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:



142
143
144
# File 'lib/mutant/result.rb', line 142

def alive_mutation_results
  mutation_results.reject(&:success?)
end

#amount_mutation_resultsFixnum

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)


150
151
152
# File 'lib/mutant/result.rb', line 150

def amount_mutation_results
  mutation_results.length
end

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


157
158
159
# File 'lib/mutant/result.rb', line 157

def amount_mutations
  subject.mutations.length
end

#amount_mutations_aliveFixnum

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:

  • (Fixnum)


171
172
173
# File 'lib/mutant/result.rb', line 171

def amount_mutations_alive
  alive_mutation_results.length
end

#amount_mutations_killedFixnum

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:

  • (Fixnum)


164
165
166
# File 'lib/mutant/result.rb', line 164

def amount_mutations_killed
  killed_mutation_results.length
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)


135
136
137
# File 'lib/mutant/result.rb', line 135

def success?
  alive_mutation_results.empty?
end