Sha256: ac55ae0d2e5d1063ec2d37954ff6235840dd78e2193b586880065c28a70e84a1
Contents?: true
Size: 994 Bytes
Versions: 7
Compression:
Stored size: 994 Bytes
Contents
# frozen_string_literal: true require_relative "event" require_relative "../../transport/event_platform_transport" module Datadog module CI module ITR module Coverage class Transport < Datadog::CI::Transport::EventPlatformTransport private def send_payload(encoded_payload) api.citestcov_request( path: Ext::Transport::TEST_COVERAGE_INTAKE_PATH, payload: encoded_payload ) end def encode_events(events) events.filter_map do |event| next unless event.valid? encoded = encoder.encode(event) next if event_too_large?(event, encoded) encoded end end def write_payload_header(packer) packer.write_map_header(2) packer.write("version") packer.write(2) packer.write("coverages") end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems