Sha256: bb6a889d47b0f7b45a25a316c4bc5961852273a90a72cbacd8f32971d4b149bc

Contents?: true

Size: 811 Bytes

Versions: 17

Compression:

Stored size: 811 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper'))
require 'new_relic/transaction_sample/fake_segment'
class NewRelic::TransactionSample::FakeSegmentTest < Test::Unit::TestCase
  def test_fake_segment_creation
    assert_nothing_raised do
      NewRelic::TransactionSample::FakeSegment.new(0.1, 'Custom/test/metric', nil)
    end
  end

  def test_parent_segment
    # should be public in this class, but not in the parent class
    s = NewRelic::TransactionSample::FakeSegment.new(0.1, 'Custom/test/metric', nil)
    s.parent_segment = 'foo'
    assert_equal('foo', s.instance_eval { @parent_segment } )
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
newrelic_rpm-3.6.5.130 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.4.122 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.4.113.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.3.111 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.3.106 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.3.105.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.3.104 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.3.103.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.2.96 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.2.90.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.1.88 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.1.87 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.1.86.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.1.85.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.0.83 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.0.78 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.6.0.74.beta test/new_relic/transaction_sample/fake_segment_test.rb