Class: Datadog::CI::TestRetries::NullComponent

Inherits:
Component
  • Object
show all
Defined in:
lib/datadog/ci/test_retries/null_component.rb

Constant Summary

Constants inherited from Component

Component::FIBER_LOCAL_CURRENT_RETRY_DRIVER_KEY

Instance Method Summary collapse

Methods inherited from Component

#build_driver, #record_test_finished, #record_test_span_duration

Constructor Details

#initializeNullComponent

Returns a new instance of NullComponent.



9
10
# File 'lib/datadog/ci/test_retries/null_component.rb', line 9

def initialize
end

Instance Method Details

#configure(library_settings) ⇒ Object



12
13
# File 'lib/datadog/ci/test_retries/null_component.rb', line 12

def configure(library_settings)
end

#reset_retries!Object



20
21
# File 'lib/datadog/ci/test_retries/null_component.rb', line 20

def reset_retries!
end

#should_retry?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/datadog/ci/test_retries/null_component.rb', line 23

def should_retry?
  false
end

#with_retries {|no_action| ... } ⇒ Object

Yields:

  • (no_action)


15
16
17
18
# File 'lib/datadog/ci/test_retries/null_component.rb', line 15

def with_retries(&block)
  no_action = proc {}
  yield no_action
end