Class: Datadog::CI::ReadonlyTestModule

Inherits:
TestModule show all
Defined in:
lib/datadog/ci/readonly_test_module.rb

Instance Attribute Summary collapse

Attributes inherited from Span

#tracer_span

Instance Method Summary collapse

Methods inherited from ConcurrentSpan

#get_tag, #set_tags, #synchronize

Methods inherited from Span

#clear_tag, #failed!, #failed?, #get_metric, #get_tag, #git_branch, #git_commit_sha, #git_repository_url, #os_architecture, #os_platform, #os_version, #passed!, #passed?, #runtime_name, #runtime_version, #service, #set_default_tags, #set_environment_runtime_tags, #set_tags, #skipped!, #skipped?, #source_file, #to_s, #trace_id, #type, #undefined?

Constructor Details

#initialize(test_module) ⇒ ReadonlyTestModule

Returns a new instance of ReadonlyTestModule.



9
10
11
12
# File 'lib/datadog/ci/readonly_test_module.rb', line 9

def initialize(test_module)
  @id = test_module.id
  @name = test_module.name
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



13
14
15
# File 'lib/datadog/ci/readonly_test_module.rb', line 13

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/datadog/ci/readonly_test_module.rb', line 13

def name
  @name
end

Instance Method Details

#finishObject



15
16
17
# File 'lib/datadog/ci/readonly_test_module.rb', line 15

def finish
  raise "ReadonlyTestModule cannot be finished"
end

#set_metric(key, value) ⇒ Object



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

def set_metric(key, value)
  raise "ReadonlyTestModule cannot be modified"
end

#set_tag(key, value) ⇒ Object



19
20
21
# File 'lib/datadog/ci/readonly_test_module.rb', line 19

def set_tag(key, value)
  raise "ReadonlyTestModule cannot be modified"
end