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.
114 115 116 |
# File 'lib/megatest/selector.rb', line 114 def initialize(loader) @loader = loader end |
Instance Method Details
#append_paths(paths_to_load) ⇒ Object
126 127 128 129 130 131 132 133 |
# File 'lib/megatest/selector.rb', line 126 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
135 136 137 138 |
# File 'lib/megatest/selector.rb', line 135 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
122 123 124 |
# File 'lib/megatest/selector.rb', line 122 def partial? @loader.partial? end |
#path ⇒ Object
118 119 120 |
# File 'lib/megatest/selector.rb', line 118 def path nil end |