Class: Evilution::Integration::Base
- Inherits:
-
Object
- Object
- Evilution::Integration::Base
show all
- Defined in:
- lib/evilution/integration/base.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(hooks: nil, mutation_applier: Evilution::Integration::Loading::MutationApplier.new) ⇒ Base
Returns a new instance of Base.
Class Method Details
.baseline_options ⇒ Object
11
12
13
|
# File 'lib/evilution/integration/base.rb', line 11
def self.baseline_options
raise NotImplementedError, "#{name}.baseline_options must be implemented"
end
|
.baseline_runner ⇒ Object
7
8
9
|
# File 'lib/evilution/integration/base.rb', line 7
def self.baseline_runner
raise NotImplementedError, "#{name}.baseline_runner must be implemented"
end
|
Instance Method Details
#call(mutation) ⇒ Object
20
21
22
23
24
25
26
27
28
|
# File 'lib/evilution/integration/base.rb', line 20
def call(mutation)
ensure_framework_loaded
fire_hook(:mutation_insert_pre, mutation: mutation, file_path: mutation.file_path)
load_error = @mutation_applier.call(mutation)
return load_error if load_error
fire_hook(:mutation_insert_post, mutation: mutation, file_path: mutation.file_path)
run_tests(mutation)
end
|