Class: Mutant::Meta::Example
- Inherits:
-
Object
- Object
- Mutant::Meta::Example
- Includes:
- Adamantium
- Defined in:
- lib/mutant/meta.rb,
lib/mutant/meta/example.rb,
lib/mutant/meta/example/dsl.rb
Overview
Mutation example
Defined Under Namespace
Classes: DSL, Verification
Constant Summary collapse
- ALL =
[]
Class Method Summary collapse
-
.add(&block) ⇒ undefined
private
Add example.
Instance Method Summary collapse
-
#generated ⇒ Emumerable<Mutant::Mutation>
private
Return generated mutations.
-
#source ⇒ String
private
Return source.
-
#verification ⇒ Verification
private
Return a verification instance.
Class Method Details
Instance Method Details
#generated ⇒ Emumerable<Mutant::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.
Return generated mutations
35 36 37 38 39 |
# File 'lib/mutant/meta/example.rb', line 35 def generated Mutant::Mutator.each(node).map do |node| Mutant::Mutation::Evil.new(self, node) end end |
#source ⇒ String
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 source
24 25 26 |
# File 'lib/mutant/meta/example.rb', line 24 def source Unparser.unparse(node) end |
#verification ⇒ Verification
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 a verification instance
14 15 16 |
# File 'lib/mutant/meta/example.rb', line 14 def verification Verification.new(self, generated) end |