Sha256: 10f431fb0a35650b03d42745b74cba7cf23497817183a44e18f8e83e45d72d1c

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class DatagramTest < Minitest::Test
  def test_parsing_datagrams
    datagram = 'Kernel.Orders.order_creation_path:1|c|' \
      '#order_source:web,code_source:NilController#NilAction,order_builder:false,' \
      'multi_currency:false,fulfillment_orders_beta_enabled:false'

    parsed = StatsD::Instrument::Datagram.new(datagram)
    assert_includes(parsed.tags, 'code_source:NilController#NilAction')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
statsd-instrument-3.0.2 test/datagram_test.rb
statsd-instrument-3.0.1 test/datagram_test.rb