Sha256: 2a788ec1c9934c3098630dc376875c755d987f07f88b58a2fcb5f81b72461620
Contents?: true
Size: 1.23 KB
Versions: 4
Compression:
Stored size: 1.23 KB
Contents
# frozen_string_literal: true require_relative "base" require_relative "../../ext/test" module Datadog module CI module TestVisibility module Serializers class TestV1 < Base CONTENT_FIELDS = [ "trace_id", "span_id", "name", "resource", "service", "error", "start", "duration", "meta", "metrics", "type" => "span_type" ].freeze CONTENT_MAP_SIZE = calculate_content_map_size(CONTENT_FIELDS) REQUIRED_FIELDS = [ "trace_id", "span_id", "error", "name", "resource", "start", "duration" ].freeze def content_fields CONTENT_FIELDS end def content_map_size CONTENT_MAP_SIZE end def type "test" end def name "#{@span.get_tag(Ext::Test::TAG_FRAMEWORK)}.test" end def resource "#{@span.get_tag(Ext::Test::TAG_SUITE)}.#{@span.get_tag(Ext::Test::TAG_NAME)}" end private def required_fields REQUIRED_FIELDS end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems