Class: TestLauncher::Frameworks::Implementation::Locator
- Inherits:
-
Struct
- Object
- Struct
- TestLauncher::Frameworks::Implementation::Locator
- Defined in:
- lib/test_launcher/frameworks/implementation/locator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#query ⇒ Object
writeonly
Sets the attribute query.
-
#searcher ⇒ Object
writeonly
Sets the attribute searcher.
Instance Method Summary collapse
Instance Attribute Details
#query=(value) ⇒ Object
Sets the attribute query
7 8 9 |
# File 'lib/test_launcher/frameworks/implementation/locator.rb', line 7 def query=(value) @query = value end |
#searcher=(value) ⇒ Object
Sets the attribute searcher
7 8 9 |
# File 'lib/test_launcher/frameworks/implementation/locator.rb', line 7 def searcher=(value) @searcher = value end |
Instance Method Details
#_prioritized_results ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/test_launcher/frameworks/implementation/locator.rb', line 14 def _prioritized_results return files_found_by_absolute_path unless files_found_by_absolute_path.empty? return examples_found_by_name unless examples_found_by_name.empty? return files_found_by_file_name unless files_found_by_file_name.empty? return files_found_by_full_regex unless files_found_by_full_regex.empty? [] end |
#prioritized_results ⇒ Object
10 11 12 |
# File 'lib/test_launcher/frameworks/implementation/locator.rb', line 10 def prioritized_results Collection.new(_prioritized_results) end |