Class: Datadog::CI::TestManagement::NullComponent
- Inherits:
-
Object
- Object
- Datadog::CI::TestManagement::NullComponent
- Defined in:
- lib/datadog/ci/test_management/null_component.rb
Constant Summary collapse
- FILE_STORAGE_KEY =
"test_management_component_state"
Instance Attribute Summary collapse
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#tests_properties ⇒ Object
readonly
Returns the value of attribute tests_properties.
Instance Method Summary collapse
- #attempt_to_fix?(_datadog_fqn_test_id) ⇒ Boolean
- #configure(_, _) ⇒ Object
- #disabled?(_datadog_fqn_test_id) ⇒ Boolean
-
#initialize ⇒ NullComponent
constructor
A new instance of NullComponent.
- #restore_state(_state) ⇒ Object
- #restore_state_from_datadog_test_runner ⇒ Object
- #serialize_state ⇒ Object
- #storage_key ⇒ Object
- #tag_test_from_properties(_) ⇒ Object
Constructor Details
#initialize ⇒ NullComponent
Returns a new instance of NullComponent.
14 15 16 17 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 14 def initialize @enabled = false @tests_properties = {} end |
Instance Attribute Details
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
12 13 14 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 12 def enabled @enabled end |
#tests_properties ⇒ Object (readonly)
Returns the value of attribute tests_properties.
12 13 14 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 12 def tests_properties @tests_properties end |
Instance Method Details
#attempt_to_fix?(_datadog_fqn_test_id) ⇒ Boolean
25 26 27 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 25 def attempt_to_fix?(_datadog_fqn_test_id) false end |
#configure(_, _) ⇒ Object
19 20 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 19 def configure(_, _) end |
#disabled?(_datadog_fqn_test_id) ⇒ Boolean
29 30 31 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 29 def disabled?(_datadog_fqn_test_id) false end |
#restore_state(_state) ⇒ Object
41 42 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 41 def restore_state(_state) end |
#restore_state_from_datadog_test_runner ⇒ Object
33 34 35 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 33 def restore_state_from_datadog_test_runner false end |
#serialize_state ⇒ Object
37 38 39 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 37 def serialize_state {tests_properties: @tests_properties} end |
#storage_key ⇒ Object
44 45 46 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 44 def storage_key FILE_STORAGE_KEY end |
#tag_test_from_properties(_) ⇒ Object
22 23 |
# File 'lib/datadog/ci/test_management/null_component.rb', line 22 def tag_test_from_properties(_) end |