Class: Evilution::RelatedSpecHeuristic Private
- Inherits:
-
Object
- Object
- Evilution::RelatedSpecHeuristic
- Defined in:
- lib/evilution/related_spec_heuristic.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- RELATED_SPEC_DIRS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%w[ spec/requests spec/integration spec/features spec/system ].freeze
- INCLUDES_PATTERN =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/\bincludes\(/
Instance Method Summary collapse
- #call(mutation) ⇒ Object private
Instance Method Details
#call(mutation) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 17 18 19 20 |
# File 'lib/evilution/related_spec_heuristic.rb', line 13 def call(mutation) return [] unless includes_mutation?(mutation) domain = extract_domain(mutation.file_path) return [] unless domain (domain) end |