Class: Mutant::Runner

Inherits:
Object
  • Object
show all
Extended by:
MethodObject
Includes:
Adamantium::Flat
Defined in:
lib/mutant/runner.rb

Overview

Runner that allows to mutate an entire project

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MethodObject

extended

Instance Attribute Details

#configMutant::Config (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 config

Returns:

  • (Mutant::Config)


35
36
37
# File 'lib/mutant/runner.rb', line 35

def config
  @config
end

#errorsEnumerable<Killer> (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 killers with errors

Returns:



13
14
15
# File 'lib/mutant/runner.rb', line 13

def errors
  @errors
end

Instance Method Details

#fail?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 for failure

Returns:

  • (true)

    returns true when there are left mutations

  • (false)

    returns false othewise



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

def fail?
  !errors.empty?
end