Sha256: 44901879b79c4721b9c4a594493277ff7cc148a848a2a597f24d4116b9f098c0
Contents?: true
Size: 746 Bytes
Versions: 3
Compression:
Stored size: 746 Bytes
Contents
# Copyright (c) 2016 SolarWinds, LLC. # All rights reserved. require 'minitest_helper' class TracingModeTest < Minitest::Test def setup @tm = AppOpticsAPM::Config[:tracing_mode] AppOpticsAPM::Config[:tracing_mode] = :always end def teardown AppOpticsAPM::Config[:tracing_mode] = @tm end def test_trace_when_always AppOpticsAPM::API.start_trace(:test_always) do AppOpticsAPM.tracing?.must_equal true end end def test_dont_trace_when_never AppOpticsAPM::Config[:tracing_mode] = :never AppOpticsAPM::API.start_trace(:test_never) do AppOpticsAPM.tracing?.must_equal false end AppOpticsAPM::API.start_trace('asdf') do AppOpticsAPM.tracing?.must_equal false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appoptics_apm-4.0.3 | test/support/tracing_mode_test.rb |
appoptics_apm-4.0.2 | test/support/tracing_mode_test.rb |
appoptics_apm-4.0.1-x86_64-linux | test/support/tracing_mode_test.rb |