Sha256: 54663760dafd07f2676f34c6190222b8b1ddb93cac8e8f0a21cce8fd9951edd5

Contents?: true

Size: 467 Bytes

Versions: 9

Compression:

Stored size: 467 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

9 entries across 9 versions & 1 rubygems

Version Path
statsd-instrument-3.0.0 test/datagram_test.rb
statsd-instrument-3.0.0.pre2 test/datagram_test.rb
statsd-instrument-2.9.2 test/datagram_test.rb
statsd-instrument-3.0.0.pre1 test/datagram_test.rb
statsd-instrument-2.9.1 test/datagram_test.rb
statsd-instrument-2.9.0 test/datagram_test.rb
statsd-instrument-2.8.0 test/datagram_test.rb
statsd-instrument-2.7.1 test/datagram_test.rb
statsd-instrument-2.7.0 test/datagram_test.rb