Class: Datadog::CI::TestVisibility::NullComponent

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

Overview

Special test visibility component that does not record anything

Instance Method Summary collapse

Instance Method Details

#active_spanObject



28
29
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 28

def active_span
end

#active_testObject



31
32
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 31

def active_test
end

#active_test_moduleObject



37
38
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 37

def active_test_module
end

#active_test_sessionObject



34
35
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 34

def active_test_session
end

#active_test_suite(test_suite_name) ⇒ Object



40
41
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 40

def active_test_suite(test_suite_name)
end

#itr_enabled?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 46

def itr_enabled?
  false
end

#logical_test_session_nameObject



60
61
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 60

def logical_test_session_name
end

#remove_test_finished_callbackObject



53
54
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 53

def remove_test_finished_callback
end

#set_test_finished_callback(_) ⇒ Object



50
51
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 50

def set_test_finished_callback(_)
end

#shutdown!Object



43
44
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 43

def shutdown!
end

#start_test_module(test_module_name, service: nil, tags: {}) ⇒ Object



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

def start_test_module(test_module_name, service: nil, tags: {})
  skip_tracing
end

#start_test_session(service: nil, tags: {}, total_tests_count: 0) ⇒ Object



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

def start_test_session(service: nil, tags: {}, total_tests_count: 0)
  skip_tracing
end

#start_test_suite(test_suite_name, service: nil, tags: {}) ⇒ Object



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

def start_test_suite(test_suite_name, service: nil, tags: {})
  skip_tracing
end

#test_suite_level_visibility_enabledObject



56
57
58
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 56

def test_suite_level_visibility_enabled
  false
end

#trace(span_name, type: "span", tags: {}, &block) ⇒ Object



24
25
26
# File 'lib/datadog/ci/test_visibility/null_component.rb', line 24

def trace(span_name, type: "span", tags: {}, &block)
  skip_tracing(block)
end

#trace_test(test_name, test_suite_name, service: nil, tags: {}, &block) ⇒ Object



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

def trace_test(test_name, test_suite_name, service: nil, tags: {}, &block)
  skip_tracing(block)
end