Class: Mutest::Mutator::Node::Regexp::CaptureGroup Private
- Inherits:
-
Mutest::Mutator::Node
- Object
- Mutest::Mutator
- Mutest::Mutator::Node
- Mutest::Mutator::Node::Regexp::CaptureGroup
- Defined in:
- lib/mutest/mutator/node/regexp/capture_group.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.
Mutator for regexp capture groups, such as ‘/(foo)/`
Constant Summary
Constants inherited from Mutest::Mutator::Node
Constants included from AST::Nodes
AST::Nodes::N_EMPTY, AST::Nodes::N_EMPTY_SUPER, AST::Nodes::N_FALSE, AST::Nodes::N_INFINITY, AST::Nodes::N_NAN, AST::Nodes::N_NEGATIVE_INFINITY, AST::Nodes::N_NIL, AST::Nodes::N_RAISE, AST::Nodes::N_SELF, AST::Nodes::N_TRUE, AST::Nodes::N_ZSUPER
Constants inherited from Mutest::Mutator
Instance Attribute Summary
Attributes inherited from Mutest::Mutator
Instance Method Summary collapse
-
#dispatch ⇒ undefined
private
Emit mutations.
Methods included from AST::NamedChildren
Methods inherited from Mutest::Mutator
Instance Method Details
#dispatch ⇒ 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.
Emit mutations
Replace ‘(captured_group)` with `(?:non_captured_group)`
16 17 18 19 20 21 |
# File 'lib/mutest/mutator/node/regexp/capture_group.rb', line 16 def dispatch return unless group emit(s(:regexp_passive_group, group)) emit_group_mutations end |