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)


217
218
219
220
221
222
223
# File 'lib/mutant/result.rb', line 217

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)


228
229
230
231
# File 'lib/mutant/result.rb', line 228

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