Class: TestLauncher::Frameworks::Implementation::Locator

Inherits:
Struct
  • Object
show all
Defined in:
lib/test_launcher/frameworks/implementation/locator.rb

Direct Known Subclasses

Base::Locator

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#query=(value) ⇒ Object

Sets the attribute query

Parameters:

  • value (Object)

    the value to set the attribute query to.

Returns:

  • (Object)

    the newly set value



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

Parameters:

  • value (Object)

    the value to set the attribute searcher to.

Returns:

  • (Object)

    the newly set value



7
8
9
# File 'lib/test_launcher/frameworks/implementation/locator.rb', line 7

def searcher=(value)
  @searcher = value
end

Instance Method Details

#_prioritized_resultsObject



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_resultsObject



10
11
12
# File 'lib/test_launcher/frameworks/implementation/locator.rb', line 10

def prioritized_results
  Collection.new(_prioritized_results)
end