Class: Mutant::Runner::Mutation

Inherits:
Mutant::Runner show all
Defined in:
lib/mutant/runner/mutation.rb

Overview

Mutation runner

Constant Summary

Constants inherited from Mutant::Runner

REGISTRY

Instance Attribute Summary collapse

Attributes inherited from Mutant::Runner

#config

Instance Method Summary collapse

Methods inherited from Mutant::Runner

#reporter, run, #runtime, #stop?

Constructor Details

#initialize(config, mutation) ⇒ undefined

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.

Initialize object

Parameters:



36
37
38
39
# File 'lib/mutant/runner/mutation.rb', line 36

def initialize(config, mutation)
  @mutation = mutation
  super(config)
end

Instance Attribute Details

#killerKiller (readonly)

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.

Return killer instance

Returns:



25
26
27
# File 'lib/mutant/runner/mutation.rb', line 25

def killer
  @killer
end

#mutationMutation (readonly)

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.

Return mutation

Returns:



17
18
19
# File 'lib/mutant/runner/mutation.rb', line 17

def mutation
  @mutation
end

Instance Method Details

#success?true, false

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 handeled successfully

Returns:

  • (true)

    if successful

  • (false)

    otherwise



51
52
53
# File 'lib/mutant/runner/mutation.rb', line 51

def success?
  mutation.success?(killer)
end