Class: Datadog::CI::TestImpactAnalysis::NullComponent
- Inherits:
-
Object
- Object
- Datadog::CI::TestImpactAnalysis::NullComponent
- Defined in:
- lib/datadog/ci/test_impact_analysis/null_component.rb
Overview
No-op implementation used when test impact analysis 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_suites ⇒ Object
readonly
Returns the value of attribute skippable_suites.
-
#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.
-
#test_skipping_mode ⇒ Object
readonly
Returns the value of attribute test_skipping_mode.
Instance Method Summary collapse
- #clear_context_coverage(_context_id) ⇒ Object
- #code_coverage? ⇒ Boolean
- #configure(_remote_configuration = nil, _test_session = nil) ⇒ Object
- #context_coverage_enabled? ⇒ Boolean
- #enabled? ⇒ Boolean
-
#initialize ⇒ NullComponent
constructor
A new instance of NullComponent.
- #mark_if_skippable(_test) ⇒ Object
- #mark_if_suite_skippable(_test_suite) ⇒ Object
- #on_test_context_started(_context_id) ⇒ Object
- #on_test_finished(_test, _context) ⇒ Object
- #on_test_started(_test) ⇒ Object
- #on_test_suite_finished(_test_suite, _context) ⇒ Object
- #on_test_suite_started(_test_suite) ⇒ Object
- #shutdown! ⇒ Object
- #skippable?(_datadog_test_id) ⇒ Boolean
- #skippable_suite?(_test_suite_name) ⇒ Boolean
- #skippables_count ⇒ Object
- #skipping_suites? ⇒ Boolean
- #skipping_tests? ⇒ Boolean
- #start_coverage ⇒ Object
- #stop_coverage ⇒ Object
- #write_test_session_tags(_test_session, _skipped_tests_count) ⇒ Object
Constructor Details
#initialize ⇒ NullComponent
Returns a new instance of NullComponent.
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 16 def initialize @enabled = false @test_skipping_enabled = false @code_coverage_enabled = false @skippable_tests_fetch_error = nil @skippable_tests = Set.new @skippable_suites = Set.new @correlation_id = nil @test_skipping_mode = Ext::Test::TIATestSkippingMode::TEST end |
Instance Attribute Details
#code_coverage_enabled ⇒ Object (readonly)
Returns the value of attribute code_coverage_enabled.
12 13 14 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 12 def code_coverage_enabled @code_coverage_enabled end |
#correlation_id ⇒ Object (readonly)
Returns the value of attribute correlation_id.
12 13 14 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 12 def correlation_id @correlation_id end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
12 13 14 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 12 def enabled @enabled end |
#skippable_suites ⇒ Object (readonly)
Returns the value of attribute skippable_suites.
12 13 14 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 12 def skippable_suites @skippable_suites end |
#skippable_tests ⇒ Object (readonly)
Returns the value of attribute skippable_tests.
12 13 14 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 12 def skippable_tests @skippable_tests end |
#skippable_tests_fetch_error ⇒ Object (readonly)
Returns the value of attribute skippable_tests_fetch_error.
12 13 14 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 12 def skippable_tests_fetch_error @skippable_tests_fetch_error end |
#test_skipping_enabled ⇒ Object (readonly)
Returns the value of attribute test_skipping_enabled.
12 13 14 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 12 def test_skipping_enabled @test_skipping_enabled end |
#test_skipping_mode ⇒ Object (readonly)
Returns the value of attribute test_skipping_mode.
12 13 14 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 12 def test_skipping_mode @test_skipping_mode end |
Instance Method Details
#clear_context_coverage(_context_id) ⇒ Object
70 71 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 70 def clear_context_coverage(_context_id) end |
#code_coverage? ⇒ Boolean
42 43 44 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 42 def code_coverage? false end |
#configure(_remote_configuration = nil, _test_session = nil) ⇒ Object
27 28 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 27 def configure(_remote_configuration = nil, _test_session = nil) end |
#context_coverage_enabled? ⇒ Boolean
73 74 75 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 73 def context_coverage_enabled? false end |
#enabled? ⇒ Boolean
30 31 32 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 30 def enabled? false end |
#mark_if_skippable(_test) ⇒ Object
77 78 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 77 def mark_if_skippable(_test) end |
#mark_if_suite_skippable(_test_suite) ⇒ Object
91 92 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 91 def mark_if_suite_skippable(_test_suite) end |
#on_test_context_started(_context_id) ⇒ Object
53 54 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 53 def on_test_context_started(_context_id) end |
#on_test_finished(_test, _context) ⇒ Object
59 60 61 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 59 def on_test_finished(_test, _context) nil end |
#on_test_started(_test) ⇒ Object
56 57 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 56 def on_test_started(_test) end |
#on_test_suite_finished(_test_suite, _context) ⇒ Object
66 67 68 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 66 def on_test_suite_finished(_test_suite, _context) nil end |
#on_test_suite_started(_test_suite) ⇒ Object
63 64 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 63 def on_test_suite_started(_test_suite) end |
#shutdown! ⇒ Object
98 99 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 98 def shutdown! end |
#skippable?(_datadog_test_id) ⇒ Boolean
80 81 82 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 80 def skippable?(_datadog_test_id) false end |
#skippable_suite?(_test_suite_name) ⇒ Boolean
84 85 86 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 84 def skippable_suite?(_test_suite_name) false end |
#skippables_count ⇒ Object
94 95 96 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 94 def skippables_count 0 end |
#skipping_suites? ⇒ Boolean
38 39 40 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 38 def skipping_suites? false end |
#skipping_tests? ⇒ Boolean
34 35 36 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 34 def skipping_tests? false end |
#start_coverage ⇒ Object
46 47 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 46 def start_coverage end |
#stop_coverage ⇒ Object
49 50 51 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 49 def stop_coverage nil end |
#write_test_session_tags(_test_session, _skipped_tests_count) ⇒ Object
88 89 |
# File 'lib/datadog/ci/test_impact_analysis/null_component.rb', line 88 def (_test_session, _skipped_tests_count) end |