Class: Datadog::CI::TestOptimisation::NullComponent
- Inherits:
-
Object
- Object
- Datadog::CI::TestOptimisation::NullComponent
- Defined in:
- lib/datadog/ci/test_optimisation/null_component.rb
Overview
No-op implementation used when test optimisation is disabled.
Instance Attribute Summary collapse
-
#code_coverage_enabled ⇒ Object
readonly
Returns the value of attribute code_coverage_enabled.
-
#correlation_id ⇒ Object
readonly
Returns the value of attribute correlation_id.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#skippable_tests ⇒ Object
readonly
Returns the value of attribute skippable_tests.
-
#skippable_tests_fetch_error ⇒ Object
readonly
Returns the value of attribute skippable_tests_fetch_error.
-
#test_skipping_enabled ⇒ Object
readonly
Returns the value of attribute test_skipping_enabled.
Instance Method Summary collapse
- #code_coverage? ⇒ Boolean
- #configure(_remote_configuration = nil, _test_session = nil) ⇒ Object
- #enabled? ⇒ Boolean
-
#initialize ⇒ NullComponent
constructor
A new instance of NullComponent.
- #mark_if_skippable(_test) ⇒ Object
- #on_test_finished(_test, _context) ⇒ Object
- #shutdown! ⇒ Object
- #skippable?(_datadog_test_id) ⇒ Boolean
- #skippable_tests_count ⇒ Object
- #skipping_tests? ⇒ Boolean
- #start_coverage(_test) ⇒ Object
- #stop_coverage(_test) ⇒ Object
- #write_test_session_tags(_test_session, _skipped_tests_count) ⇒ Object
Constructor Details
#initialize ⇒ NullComponent
Returns a new instance of NullComponent.
13 14 15 16 17 18 19 20 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 13 def initialize @enabled = false @test_skipping_enabled = false @code_coverage_enabled = false @skippable_tests_fetch_error = nil @skippable_tests = Set.new @correlation_id = nil end |
Instance Attribute Details
#code_coverage_enabled ⇒ Object (readonly)
Returns the value of attribute code_coverage_enabled.
10 11 12 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 10 def code_coverage_enabled @code_coverage_enabled end |
#correlation_id ⇒ Object (readonly)
Returns the value of attribute correlation_id.
10 11 12 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 10 def correlation_id @correlation_id end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
10 11 12 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 10 def enabled @enabled end |
#skippable_tests ⇒ Object (readonly)
Returns the value of attribute skippable_tests.
10 11 12 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 10 def skippable_tests @skippable_tests end |
#skippable_tests_fetch_error ⇒ Object (readonly)
Returns the value of attribute skippable_tests_fetch_error.
10 11 12 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 10 def skippable_tests_fetch_error @skippable_tests_fetch_error end |
#test_skipping_enabled ⇒ Object (readonly)
Returns the value of attribute test_skipping_enabled.
10 11 12 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 10 def test_skipping_enabled @test_skipping_enabled end |
Instance Method Details
#code_coverage? ⇒ Boolean
33 34 35 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 33 def code_coverage? false end |
#configure(_remote_configuration = nil, _test_session = nil) ⇒ Object
22 23 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 22 def configure(_remote_configuration = nil, _test_session = nil) end |
#enabled? ⇒ Boolean
25 26 27 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 25 def enabled? false end |
#mark_if_skippable(_test) ⇒ Object
44 45 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 44 def mark_if_skippable(_test) end |
#on_test_finished(_test, _context) ⇒ Object
51 52 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 51 def on_test_finished(_test, _context) end |
#shutdown! ⇒ Object
61 62 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 61 def shutdown! end |
#skippable?(_datadog_test_id) ⇒ Boolean
47 48 49 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 47 def skippable?(_datadog_test_id) false end |
#skippable_tests_count ⇒ Object
57 58 59 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 57 def skippable_tests_count 0 end |
#skipping_tests? ⇒ Boolean
29 30 31 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 29 def skipping_tests? false end |
#start_coverage(_test) ⇒ Object
37 38 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 37 def start_coverage(_test) end |
#stop_coverage(_test) ⇒ Object
40 41 42 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 40 def stop_coverage(_test) nil end |
#write_test_session_tags(_test_session, _skipped_tests_count) ⇒ Object
54 55 |
# File 'lib/datadog/ci/test_optimisation/null_component.rb', line 54 def (_test_session, _skipped_tests_count) end |