Class: Mutant::Result::Mutation 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.

Mutation result

Instance Method Summary collapse

Methods included from Mutant::Result

included, #overhead

Instance Method Details

#killtimeFloat

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.

Time the tests had been running

Returns:

  • (Float)


214
215
216
217
218
219
220
# File 'lib/mutant/result.rb', line 214

def killtime
  if isolation_result.success?
    isolation_result.value.runtime
  else
    0.0
  end
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 handled successfully

Returns:

  • (Boolean)


225
226
227
228
# File 'lib/mutant/result.rb', line 225

def success?
  isolation_result.success? &&
    mutation.class.success?(isolation_result.value)
end