Class: Mutant::Selector::Expression Private
- Inherits:
-
Mutant::Selector
- Object
- Mutant::Selector
- Mutant::Selector::Expression
- Defined in:
- lib/mutant/selector/expression.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.
Expression based test selector
Instance Method Summary collapse
-
#call(subject) ⇒ Enumerable<Test>
private
Tests for subject.
-
#name ⇒ String
private
Name of the strategy this selector implements.
Instance Method Details
#call(subject) ⇒ Enumerable<Test>
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.
Tests for subject
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/mutant/selector/expression.rb', line 19 def call(subject) subject.match_expressions.each do |match_expression| subject_tests = integration.available_tests.select do |test| test.expressions.any? do |test_expression| match_expression.prefix?(test_expression) end end return subject_tests if subject_tests.any? end EMPTY_ARRAY end |
#name ⇒ 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.
Name of the strategy this selector implements
12 |
# File 'lib/mutant/selector/expression.rb', line 12 def name = 'expression' |