Class: Mutant::Env Private

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat
Defined in:
lib/mutant/env.rb,
lib/mutant/env/bootstrap.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.

Abstract base class for mutant environments

Defined Under Namespace

Classes: Bootstrap

Constant Summary collapse

SEMANTICS_MESSAGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

"Fix your lib to follow normal ruby semantics!\n" \
'{Module,Class}#name should return resolvable constant name as String or nil'.freeze

Instance Method Summary collapse

Instance Method Details

#kill(mutation) ⇒ 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.

Kill mutation

Parameters:

Returns:



24
25
26
27
28
29
30
# File 'lib/mutant/env.rb', line 24

def kill(mutation)
  test_result = run_mutation_tests(mutation)
  Result::Mutation.new(
    mutation:    mutation,
    test_result: test_result
  )
end