Class: SixthSense::FrameworkAdapter
- Inherits:
-
Object
- Object
- SixthSense::FrameworkAdapter
show all
- Defined in:
- lib/sixth_sense/framework_adapter.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.for_path(path) ⇒ Object
14
15
16
|
# File 'lib/sixth_sense/framework_adapter.rb', line 14
def for_path(path)
registry.values.find { |adapter_class| adapter_class.new.handles?(path) }
end
|
.register(name, adapter_class) ⇒ Object
6
7
8
|
# File 'lib/sixth_sense/framework_adapter.rb', line 6
def register(name, adapter_class)
registry[name.to_sym] = adapter_class
end
|
.registry ⇒ Object
10
11
12
|
# File 'lib/sixth_sense/framework_adapter.rb', line 10
def registry
@registry ||= {}
end
|
Instance Method Details
#assertion_patterns ⇒ Object
51
52
53
|
# File 'lib/sixth_sense/framework_adapter.rb', line 51
def assertion_patterns
[]
end
|
#checked_coverage_test_command(test_case:, config:) ⇒ Object
43
44
45
|
# File 'lib/sixth_sense/framework_adapter.rb', line 43
def checked_coverage_test_command(test_case:, config:)
nil
end
|
#coverage_test_command(test_case:, config:) ⇒ Object
39
40
41
|
# File 'lib/sixth_sense/framework_adapter.rb', line 39
def coverage_test_command(test_case:, config:)
nil
end
|
#handles?(_path) ⇒ Boolean
19
20
21
|
# File 'lib/sixth_sense/framework_adapter.rb', line 19
def handles?(_path)
raise NotImplementedError
end
|
#map_to_sut(_test_file) ⇒ Object
47
48
49
|
# File 'lib/sixth_sense/framework_adapter.rb', line 47
def map_to_sut(_test_file)
raise NotImplementedError
end
|
#mutation_session(test_files:) ⇒ Object
31
32
33
|
# File 'lib/sixth_sense/framework_adapter.rb', line 31
def mutation_session(test_files:)
raise NotImplementedError
end
|
#mutation_test_command(test_case:, config:) ⇒ Object
35
36
37
|
# File 'lib/sixth_sense/framework_adapter.rb', line 35
def mutation_test_command(test_case:, config:)
nil
end
|
#parse(_path) ⇒ Object
23
24
25
|
# File 'lib/sixth_sense/framework_adapter.rb', line 23
def parse(_path)
raise NotImplementedError
end
|
#run_with_coverage(test_files:, isolation:) ⇒ Object
27
28
29
|
# File 'lib/sixth_sense/framework_adapter.rb', line 27
def run_with_coverage(test_files:, isolation:)
raise NotImplementedError
end
|