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