Class: Megatest::Selector::NegativeLoader
- Inherits:
-
Object
- Object
- Megatest::Selector::NegativeLoader
- Defined in:
- lib/megatest/selector.rb
Instance Method Summary collapse
- #append_paths(paths_to_load) ⇒ Object
- #append_tests(tests_to_run, registry, random:) ⇒ Object
-
#initialize(loader) ⇒ NegativeLoader
constructor
A new instance of NegativeLoader.
- #partial? ⇒ Boolean
- #path ⇒ Object
Constructor Details
#initialize(loader) ⇒ NegativeLoader
Returns a new instance of NegativeLoader.
105 106 107 |
# File 'lib/megatest/selector.rb', line 105 def initialize(loader) @loader = loader end |
Instance Method Details
#append_paths(paths_to_load) ⇒ Object
117 118 119 120 121 122 123 124 |
# File 'lib/megatest/selector.rb', line 117 def append_paths(paths_to_load) if @loader.partial? paths_to_load else paths_to_not_load = @loader.append_paths([]) paths_to_load - paths_to_not_load end end |
#append_tests(tests_to_run, registry, random:) ⇒ Object
126 127 128 129 |
# File 'lib/megatest/selector.rb', line 126 def append_tests(tests_to_run, registry, random:) tests_to_not_run = @loader.append_tests([], registry, random: nil) tests_to_run - tests_to_not_run end |
#partial? ⇒ Boolean
113 114 115 |
# File 'lib/megatest/selector.rb', line 113 def partial? @loader.partial? end |
#path ⇒ Object
109 110 111 |
# File 'lib/megatest/selector.rb', line 109 def path nil end |