Sha256: 2f5c64224b597a2bcb206c87707cc3ee6152ebe7cd63f7bd31fc1d5955140c6d
Contents?: true
Size: 1.08 KB
Versions: 6
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true require_relative "recorder" module Datadog module CI module TestVisibility # Special recorder that does not record anything class NullRecorder def start_test_session(service: nil, tags: {}) skip_tracing end def start_test_module(test_module_name, service: nil, tags: {}) skip_tracing end def start_test_suite(test_suite_name, service: nil, tags: {}) skip_tracing end def trace_test(test_name, test_suite_name, service: nil, tags: {}, &block) skip_tracing(block) end def trace(span_name, type: "span", tags: {}, &block) skip_tracing(block) end def active_span end def active_test end def active_test_session end def active_test_module end def active_test_suite(test_suite_name) end def shutdown! end private def skip_tracing(block = nil) block&.call(nil) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems